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
The plugin-wielding, multi-purpose Telegram chat bot.
The plugin-wielding, multi-purpose Telegram bot.
Public bot runs on [@mokubot](http://telegram.me/mokubot).

View File

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