- Cash: Falsche Hilfe
- gMaps: Überschneidung des Patterns mit location_manager behoben - Plugins: matches hinzugefügt - RSS: Escape Text
This commit is contained in:
parent
fc7e0d46f9
commit
ddbaca396f
@ -3,7 +3,7 @@ local currency = {}
|
||||
local HTTPS = require('ssl.https')
|
||||
local utilities = require('otouto.utilities')
|
||||
|
||||
currency.command = 'cash [Menge] <von> in <zu>'
|
||||
currency.command = 'cash [Menge] <von> <zu>'
|
||||
|
||||
function currency:init(config)
|
||||
currency.triggers = {
|
||||
|
@ -6,7 +6,7 @@ local utilities = require('otouto.utilities')
|
||||
gMaps.command = 'loc <Ort>'
|
||||
|
||||
function gMaps:init(config)
|
||||
gMaps.triggers = utilities.triggers(self.info.username, config.cmd_pat):t('location', true):t('loc', true).table
|
||||
gMaps.triggers = utilities.triggers(self.info.username, config.cmd_pat):t('loc', true).table
|
||||
gMaps.doc = [[*
|
||||
]]..config.cmd_pat..[[loc* _<Ort>_: Sendet Ort via Google Maps]]
|
||||
end
|
||||
|
@ -163,7 +163,7 @@ function plugin_manager:reenable_plugin_on_chat(msg, plugin)
|
||||
end
|
||||
end
|
||||
|
||||
function plugin_manager:action(msg, config)
|
||||
function plugin_manager:action(msg, config, matches)
|
||||
if msg.from.id ~= config.admin then
|
||||
utilities.send_reply(self, msg, config.errors.sudo)
|
||||
return
|
||||
|
@ -285,7 +285,7 @@ function rss:cron(self_plz)
|
||||
else
|
||||
content = ''
|
||||
end
|
||||
text = text..'\n*'..title..'*\n'..content..' [Weiterlesen]('..link..')\n'
|
||||
text = text..'\n#RSS: *'..title..'*\n'..utilities.md_escape(content)..' [Weiterlesen]('..link..')\n'
|
||||
end
|
||||
if text ~= '' then
|
||||
local newlast = newentr[1].id
|
||||
|
Reference in New Issue
Block a user