Skip to main content

A helga plugin that can be used to store responses that can be returned from a question

Project description

A helga plugin that can be used to store responses that can be returned from a question. For example:

<sduncan> foo is bar
<sduncan> foo?
<helga> foo is bar (sduncan on 12/01/2014 08:15)
<sduncan> bar baz are qux
<sduncan> bar baz?
<helga> bar baz is qux (sduncan on 12/01/2014 08:15)

Facts are queried using the form fact? and are stored automatically using the form fact (is|are) term. In this simple fact storing form, facts are saved with the nick of the user that saying it and the timestamp at which it was said. Facts can also be stored as a reply only without a nick or timestamp by using the token ‘<reply>’:

<sduncan> foo is <reply> bar
<sduncan> foo?
<helga> bar

Optionally, if the setting FACTS_REQUIRE_NICKNAME is set to True, the bot’s nick will be required to show a stored fact:

<sduncan> foo is <reply> bar
<sduncan> foo?
<sduncan> helga foo?
<helga> bar

License

Copyright (c) 2015 Shaun Duncan

Licensed under an MIT license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

helga-facts-0.1.0.tar.gz (4.7 kB view details)

Uploaded Source

File details

Details for the file helga-facts-0.1.0.tar.gz.

File metadata

  • Download URL: helga-facts-0.1.0.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for helga-facts-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c256d1231a2dfaab4e12ef42625d147a5b7f697bb7d2511bc0836423843d0d4e
MD5 041c1a59b4f49ef18f3651a4dee81835
BLAKE2b-256 921a9ddf42706712de6bc656925b29afd2c0c0ceaed74b83069340af3b5ee9a5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page