fixed btc

This commit is contained in:
dupie 2015-07-08 22:56:50 -04:00
parent 32accf3da9
commit 947d397673
2 changed files with 5 additions and 6 deletions

View File

@ -1,6 +1,6 @@
# otouto # otouto
The plugin-wielding, multi-purpose Telegram chat bot. The plugin-wielding, multi-purpose Telegram bot.
Public bot runs on [@mokubot](http://telegram.me/mokubot). Public bot runs on [@mokubot](http://telegram.me/mokubot).

View File

@ -24,11 +24,10 @@ function PLUGIN.action(msg)
local jdat = JSON.decode(jstr) local jdat = JSON.decode(jstr)
if string.len(msg.text) > 6 then local input = get_input(msg.text)
arg1 = string.upper(string.sub(msg.text, 6, 8)) if input then
end arg1 = string.upper(string.sub(input, 1, 3))
if string.len(msg.text) > 9 then arg2 = string.sub(input, 5)
arg2 = string.sub(msg.text, 10)
if not tonumber(arg2) then if not tonumber(arg2) then
return send_msg(msg, 'Invalid argument.') return send_msg(msg, 'Invalid argument.')
end end