summaryrefslogtreecommitdiff
path: root/data/rbot/plugins/factoids.rb
AgeCommit message (Collapse)Author
2010-07-10factoids plugin: more helpGiuseppe Bilotta
2009-05-22factoids: fix error message when no fact is foundGiuseppe Bilotta
When the search is called as 'facts search' the 'words' parameter is not defined, so customize the message depending on wether we have that or 'rx'.
2009-03-24factoids: fix 'facts search'Giuseppe Bilotta
2009-02-16factoids: pass proper parameter from unreplied()Giuseppe Bilotta
When passing on the Array of split words from unreplied() to facts() make sure that the passed argument behaves like an Array/String from the MessageMapper.
2009-02-15+ @bot.path and datafile methodsGiuseppe Bilotta
We provide two methods that make it more simple and elegant for botmodules to define paths relative to the bot's own directory (botclass) and to the BotModule's (assumed) non-registry directory. The first method is Irc::Bot#path(), which joins its arguments with the botclass. This method can be used to access datafiles in the bot directory with a much cleaner syntax; and since it uses File.join, the resulting paths are also properly formatted on each platform, which doesn't hurt. Each BotModule now also carries a dirname() method that should return the directory under botclass that holds the BotModule's datafiles. dirname() defaults to the BotModule's name(), but it can be overridden, e.g. for backwards compatibility (see the patch for the quotes plugin), or for BotModules that share their datafiles. Datafiles can be accessed using the BotModule#datafile() method that joins the botclass, the dirname() and whatever other argument is passed.
2008-03-27factoids plugin: fix regexp for words such as jsn-Giuseppe Bilotta
2008-02-17factoids plugin: split correctly when displaying factsGiuseppe Bilotta
2008-02-13factoids plugin: factoids.not_triggers to prevent common words from becoming ↵Giuseppe Bilotta
triggers
2008-02-13factoids plugin: be silent when learning factoids from chat, with option to ↵Giuseppe Bilotta
provide feedback
2008-02-13factoids plugin: actually learn new keywords when learning new factoidsGiuseppe Bilotta
2008-02-13factoids plugin: draft 'listen and learn' processGiuseppe Bilotta
2008-02-13factoids plugin: don't be too verbose when learning factsGiuseppe Bilotta
2008-02-13factoids plugin: add have and do in trigger_patternGiuseppe Bilotta
2008-02-13factoids plugin: short_fact() auxiliary (no metadata)Giuseppe Bilotta
2008-02-12factoids plugin: options to facts() method may be nil, not just emptyGiuseppe Bilotta
2007-12-24factoids plugin: split facts output at the -- joinerGiuseppe Bilotta
2007-12-24factoids plugin: 'facts about' searches whole words, 'facts search' uses ↵Giuseppe Bilotta
regular expressions, keyword-style '?' queries act like 'facts about'
2007-11-21factoids plugin: config value for number of search resultsGiuseppe Bilotta
2007-11-21factoids plugin: an empty trigger_pattern list means any word is a keywordGiuseppe Bilotta
2007-11-21factoids plugin: config option to reply to queries only when addressedGiuseppe Bilotta
2007-11-21factoids plugin: reply when queries match a triggerGiuseppe Bilotta
2007-11-21factoids plugin: scan factoids for query triggersGiuseppe Bilotta
2007-11-05factoids plugin: echo the newly learned factGiuseppe Bilotta
2007-11-05factoids plugin: tell the user the index of the fact when refusing to learn ↵Giuseppe Bilotta
something we know already
2007-11-04factoids plugin: no need to prepend 'learnt' to metadataGiuseppe Bilotta
2007-11-04factoids plugin: actually output metadata in long form of Factoid#to_sGiuseppe Bilotta
2007-11-04factoids plugin: command to forget a fact by index rather than textGiuseppe Bilotta
2007-11-04factoids plugin: display (selected, random) multiple facts in a single line, ↵Giuseppe Bilotta
but in long form
2007-11-04factoids plugin: move meta display into Factoid#to_sGiuseppe Bilotta
2007-11-04factoids plugin: display multiple facts one per line, but only a limited ↵Giuseppe Bilotta
number of them
2007-11-04factoids plugin: mark factoids as changed after factfile importGiuseppe Bilotta
2007-11-04factoids plugin: factfile importGiuseppe Bilotta
2007-11-04factoids plugin: ensure that edited metadata is properly saved, and check ↵Giuseppe Bilotta
for parseable dates
2007-11-04factoids plugin: fact metadata editingGiuseppe Bilotta
2007-11-04factoids plugin: output fact numbers prefixed by a pound sign (#), and ↵Giuseppe Bilotta
accept it in index parameter
2007-11-04factoids plugin: tell fact metadata, if presentGiuseppe Bilotta
2007-11-04factoids plugin: retrieve fact by indexGiuseppe Bilotta
2007-11-04factoids plugin: default auth_path for fact editingGiuseppe Bilotta
2007-11-04factoids plugin: fact command (get a random fact). Remove fact command from ↵Giuseppe Bilotta
chucknorris plugin
2007-11-04factoids plugin: Factoid and FactoidList classesGiuseppe Bilotta
2007-11-03factoids pluginGiuseppe Bilotta