mirror of
https://github.com/octoleo/telegram-bot-bash.git
synced 2024-11-26 17:26:27 +00:00
Fixed comments relating to mycommmands.sh; Updated text in first message after startup
This commit is contained in:
parent
6de7be098e
commit
5212a990b1
@ -15,7 +15,7 @@
|
|||||||
# use ${ME} for current bot name in messages
|
# use ${ME} for current bot name in messages
|
||||||
# Note: you must escape '_' in botname with two \ in markdown messages!
|
# Note: you must escape '_' in botname with two \ in markdown messages!
|
||||||
export bashbot_info='This is @'"${ME//_/\\\\_}"', the Telegram example bot written entirely in bash.
|
export bashbot_info='This is @'"${ME//_/\\\\_}"', the Telegram example bot written entirely in bash.
|
||||||
Edit commands and messages in mycommnds.sh!
|
Edit commands and messages in mycommands.sh!
|
||||||
'
|
'
|
||||||
# export bashbot_help='*Available commands*:
|
# export bashbot_help='*Available commands*:
|
||||||
#'
|
#'
|
||||||
@ -89,7 +89,7 @@ else
|
|||||||
# action triggered on first message after startup
|
# action triggered on first message after startup
|
||||||
if [[ "$(getConfigKey "startupaction")" != "done"* ]]; then
|
if [[ "$(getConfigKey "startupaction")" != "done"* ]]; then
|
||||||
# send message to first user on startup
|
# send message to first user on startup
|
||||||
send_normal_message "${CHAT[ID]}" "Hi, you was the first one after startup!"
|
send_normal_message "${CHAT[ID]}" "Hi, you are the first user after startup!"
|
||||||
# mark as done and when
|
# mark as done and when
|
||||||
setConfigKey "startupaction" "done $(date)"
|
setConfigKey "startupaction" "done $(date)"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user