summaryrefslogtreecommitdiff
path: root/data/rbot/plugins/reaction.rb
AgeCommit message (Collapse)Author
2010-12-31fake message: set replied on replyGiuseppe Bilotta
Although the reply method for fake messages was actually relying on the original, we still need to set 'replied' to prevent the fake message from being wrongly delegated to 'unreplied'. The most obvious bug this commit fixes is the potentially infinite loop triggered by defining a command reaction triggered by the command name itself (e.g. reply to ping with cmd:ping).
2010-04-16reaction: handle :acts in can_add?Raine Virta
2010-02-25reaction: fix can_add? method logicRaine Virta
It should now follow this logic: * Allow everyone to create basic replies * Require specific permissions for cmd and ruby reactions
2010-02-25reaction: reverse permission checkRaine Virta
2010-02-10react: restrict command reactions by defaultGiuseppe Bilotta
Anybody can create a dangerous reaction, and then trick the owner into triggering it. Credits to apoc for spotting this.
2009-08-27reaction plugin: shorter help for repliesGiuseppe Bilotta
2009-08-27reaction plugin: 'ruby:' repliesGiuseppe Bilotta
A reply can be prefixed with 'ruby:' to signify that it's a short ruby snippet to be eval()ed. Adding these reactions is protected by default.
2009-04-07reaction: document 'reaction move' syntaxGiuseppe Bilotta
2009-03-09reaction: spoken reactions should use plainreply, not replyGiuseppe Bilotta
2009-03-09reaction: fix trigger regex to work with non-alphanumeric start/end.Spencer Rinehart
only match on word boundaries at an end of a trigger if the character at that end of the trigger is a word character. In other words, the trigger "test" should require word boundaries on each side, but the trigger "@test" should only require one on the right side.
2009-02-19remove whitespaceRaine Virta
2008-12-28plugins: raise a descriptive LoadError when the db is corrupt on loadGiuseppe Bilotta
2008-04-08reaction plugin: use fake_message()Giuseppe Bilotta
2008-03-24* (reaction plugin) make rm recalculate chances of repliesJan Wikholm
2007-11-01reaction plugin: better matching for non-regexp triggersGiuseppe Bilotta
2007-10-31reaction plugin: fix reaction removal when no index was specifiedGiuseppe Bilotta
2007-10-31reaction plugin: improve trigger_syntax furtherGiuseppe Bilotta
2007-10-31reaction plugin: reactions can now call commandsGiuseppe Bilotta
2007-10-31reaction plugin: allow removal of a single reaction to a triggerGiuseppe Bilotta
2007-10-31reaction plugin: collect trigger syntax into a single regexpGiuseppe Bilotta
2007-10-31reaction plugin: update help text to match new syntaxGiuseppe Bilotta
2007-09-22reaction plugin: uniformize auth_path for trigger removal commandsGiuseppe Bilotta
2007-09-22reaction plugin: order reaction candidates by number of captures as ↵Giuseppe Bilotta
secondary order
2007-09-21reaction plugin: no more :stuff, but :before and :after for the pre and ↵Giuseppe Bilotta
postmatch text
2007-09-21reaction plugin: it's %{key}, not %%{key}Giuseppe Bilotta
2007-09-21reaction plugin: quoted multi-word triggers in [1189] were not being ↵Giuseppe Bilotta
unquoted when setting up the trigger
2007-09-21reaction plugin: use the longest-matching trigger, not the first one foundGiuseppe Bilotta
2007-09-21reaction plugin: make triggers case insensitiveGiuseppe Bilotta
2007-09-21reaction plugin: range attribute should be an accessor, not a readerGiuseppe Bilotta
2007-09-21reaction plugin: revert [1204], having r.range == nil is an actually ↵Giuseppe Bilotta
supported scenario, and if it happens unexpectedly it's some other bug
2007-09-21* (plugins/reaction) fixed r.range == nil caseDmitry Kim
2007-09-20reaction plugin: captures in regexp are now available as match1, match2, etcGiuseppe Bilotta
2007-09-20reaction plugin: allow moving replies from one trigger to anotherGiuseppe Bilotta
2007-09-20reaction plugin: chance was not actually optionalGiuseppe Bilotta
2007-09-20reaction plugin: reply ranges were not being updated when adding a new replyGiuseppe Bilotta
2007-09-20reaction plugin: it is now possible to change the chance of a reaction by ↵Giuseppe Bilotta
'adding' it again
2007-09-20reaction plugin: update helpGiuseppe Bilotta
2007-09-20reaction plugin: missing \! in string-to-chance conversionGiuseppe Bilotta
2007-09-20reaction plugin: author/date/channel information are reply, not trigger ↵Giuseppe Bilotta
specific. Add command to show them
2007-09-20reaction plugin: triggers can have multiple reactions, each with a different ↵Giuseppe Bilotta
percentage If the sum of all the percentages is less than 1, then there is chance that nothing will be replied. Otherwise, the percentage is just the relative chance that each reply will be selected.
2007-09-19reaction plugin: only react to unreplied messagesGiuseppe Bilotta
2007-09-19reaction plugin: check for existing reaction when adding a new oneGiuseppe Bilotta
2007-09-19reaction plugin: new add syntaxGiuseppe Bilotta
2007-09-19reaction plugin: one-liner reply/reaction to in-channel messages/actions. ↵Giuseppe Bilotta
Initial commit