sorry, small bug :P (#22)

* sorry, small bug :P

* Update commands.sh

* Update commands.sh

* Update commands.sh
This commit is contained in:
jarriztg 2016-06-05 06:07:31 -05:00 committed by Daniil Gentili
parent e654ec51ed
commit f4f96d9863

View File

@ -56,7 +56,7 @@ else
;; ;;
'/start') '/start')
send_action "${CHAT[ID]}" "typing" send_action "${CHAT[ID]}" "typing"
send__markdown_message "${CHAT[ID]}" "This is bashbot, the Telegram bot written entirely in bash. send_markdown_message "${CHAT[ID]}" "This is bashbot, the Telegram bot written entirely in bash.
It features background tasks and interactive chats, and can serve as an interface for CLI programs. It features background tasks and interactive chats, and can serve as an interface for CLI programs.
It currently can send, recieve and forward messages, custom keyboards, photos, audio, voice, documents, locations and video files. It currently can send, recieve and forward messages, custom keyboards, photos, audio, voice, documents, locations and video files.
*Available commands*: *Available commands*:
@ -64,6 +64,8 @@ It currently can send, recieve and forward messages, custom keyboards, photos, a
*• /info*: _Get shorter info message about this bot_. *• /info*: _Get shorter info message about this bot_.
*• /question*: _Start interactive chat_. *• /question*: _Start interactive chat_.
*• /cancel*: _Cancel any currently running interactive chats_. *• /cancel*: _Cancel any currently running interactive chats_.
*• /kickme*: _You will be autokicked from the chat_.
*• /leavechat*: _The bot will leave the group with this command _.
Written by Drew (@topkecleon) and Daniil Gentili (@danogentili). Written by Drew (@topkecleon) and Daniil Gentili (@danogentili).
Get the code in my [GitHub](http://github.com/topkecleon/telegram-bot-bash) Get the code in my [GitHub](http://github.com/topkecleon/telegram-bot-bash)
" "
@ -77,6 +79,7 @@ Get the code in my [GitHub](http://github.com/topkecleon/telegram-bot-bash)
'/kickme') '/kickme')
kick_chat_member "${CHAT[ID]}" "${USER[ID]}" kick_chat_member "${CHAT[ID]}" "${USER[ID]}"
unban_chat_member "${CHAT[ID]}" "${USER[ID]}" unban_chat_member "${CHAT[ID]}" "${USER[ID]}"
;;
'/cancel') '/cancel')
if tmux ls | grep -q $copname; then killproc && send_message "${USER[ID]}" "Command canceled.";else send_message "${USER[ID]}" "No command is currently running.";fi if tmux ls | grep -q $copname; then killproc && send_message "${USER[ID]}" "Command canceled.";else send_message "${USER[ID]}" "No command is currently running.";fi