- Bold als Pattern für echo Inline

- Fix Calc
This commit is contained in:
Andreas Bielawski 2016-07-17 17:45:20 +02:00
parent 9c1dd2f9f7
commit 2c089e472e
2 changed files with 3 additions and 2 deletions

View File

@ -15,7 +15,7 @@ function calc:init(config)
end end
function calc:mathjs(exp) function calc:mathjs(exp)
local exp = string.gsub(exp, ",", "%.") local exp = string.gsub(exp, ",", ".")
local url = 'http://api.mathjs.org/v1/' local url = 'http://api.mathjs.org/v1/'
url = url..'?expr='..URL.escape(exp) url = url..'?expr='..URL.escape(exp)
local b,c = http.request(url) local b,c = http.request(url)

View File

@ -7,7 +7,8 @@ echo.command = 'echo <Text>'
function echo:init(config) function echo:init(config)
echo.triggers = utilities.triggers(self.info.username, config.cmd_pat):t('echo', true).table echo.triggers = utilities.triggers(self.info.username, config.cmd_pat):t('echo', true).table
echo.inline_triggers = { echo.inline_triggers = {
"^e (.*)" "^e (.+)",
"^bold (.+)"
} }
echo.doc = [[* echo.doc = [[*
]]..config.cmd_pat..[[echo* _<Text>_: Gibt den Text aus]] ]]..config.cmd_pat..[[echo* _<Text>_: Gibt den Text aus]]