Fixe ein ziemlich seltsames Problem mit /plugins
This commit is contained in:
@@ -5,12 +5,12 @@ local bot = require('otouto.bot')
|
||||
function plugin_manager:init(config)
|
||||
plugin_manager.triggers = {
|
||||
"^/plugins$",
|
||||
"^/plugins? (enable) ([%w_%.%-]+) (chat) (%d+)$",
|
||||
"^/plugins? (enable) ([%w_%.%-]+) (chat)$",
|
||||
"^/plugins? (disable) ([%w_%.%-]+) (chat) (%d+)$",
|
||||
"^/plugins? (disable) ([%w_%.%-]+) (chat)$",
|
||||
"^/plugins? (enable) ([%w_%.%-]+)$",
|
||||
"^/plugins? (disable) ([%w_%.%-]+)$",
|
||||
"^/plugins? (enable) ([%w_%.%-]+) (chat) (%d+)",
|
||||
"^/plugins? (enable) ([%w_%.%-]+) (chat)",
|
||||
"^/plugins? (disable) ([%w_%.%-]+) (chat) (%d+)",
|
||||
"^/plugins? (disable) ([%w_%.%-]+) (chat)",
|
||||
"^/plugins? (reload)$",
|
||||
"^/(reload)$"
|
||||
}
|
||||
|
||||
@@ -4,10 +4,9 @@ preview.command = 'preview <link>'
|
||||
|
||||
function preview:init(config)
|
||||
preview.triggers = utilities.triggers(self.info.username, config.cmd_pat):t('preview', true).table
|
||||
preview.doc = [[```
|
||||
]]..config.cmd_pat..[[preview <link>
|
||||
Returns a full-message, "unlinked" preview.
|
||||
```]]
|
||||
preview.doc = [[*
|
||||
]]..config.cmd_pat..[[preview* _<URL>_
|
||||
Erstellt einen Preview-Link]]
|
||||
end
|
||||
|
||||
function preview:action(msg)
|
||||
|
||||
Reference in New Issue
Block a user