blacklist.lua rewritten to remove toggle and support multiple arguments.

The /reload command no longer has stupid, undocumented behavior (though there is now an opt-in for such
stupid, undocumented behavior for those of you who like stupid, undocumented behavior).
Slight modification to reactions.lua to prevent accidents.
New plugin: rmspic.lua. why
This commit is contained in:
topkecleon
2016-07-13 21:57:23 -04:00
parent 9ebdbd9d3c
commit 67f7d7e12f
5 changed files with 135 additions and 32 deletions

View File

@ -95,7 +95,7 @@ function bot:on_msg_receive(msg, config) -- The fn run whenever a message is rec
end
for _, plugin in ipairs(self.plugins) do
for _, trigger in pairs(plugin.triggers or {}) do
for _, trigger in ipairs(plugin.triggers or {}) do
if string.match(msg.text_lower, trigger) then
local success, result = pcall(function()
return plugin.action(self, msg, config)