- Bold als Pattern für echo Inline
- Fix Calc
This commit is contained in:
parent
9c1dd2f9f7
commit
2c089e472e
@ -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)
|
||||||
|
@ -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]]
|
||||||
|
Reference in New Issue
Block a user