Weitere Anpassungen

Patterns angepasst
Ungenutzte Plugins entfernt
Kleine Änderungen & Fixes
Stabilitätsverbesserungen
This commit is contained in:
2016-07-18 18:37:29 +02:00
parent 3bfc8ab6c7
commit 41cb630710
41 changed files with 338 additions and 568 deletions

View File

@ -8,14 +8,14 @@ calc.command = 'calc <Ausdruck>'
function calc:init(config)
calc.triggers = {
"^/calc (.*)$"
"^/[Cc][Aa][Ll][Cc] (.*)$"
}
calc.doc = [[*
]]..config.cmd_pat..[[calc* _[Ausdruck]_: Rechnet]]
end
function calc:mathjs(exp)
local exp = string.gsub(exp, ",", "%.")
local exp = string.gsub(exp, ",", ".")
local url = 'http://api.mathjs.org/v1/'
url = url..'?expr='..URL.escape(exp)
local b,c = http.request(url)