mirror of
https://github.com/octoleo/telegram-bot-bash.git
synced 2024-12-29 05:02:46 +00:00
startup example rewind comment
This commit is contained in:
parent
f53e9ced17
commit
6a6410e8e6
@ -8,7 +8,7 @@
|
||||
# #### if you start to develop your own bot, use the clean version of this file:
|
||||
# #### mycommands.clean
|
||||
#
|
||||
#### $$VERSION$$ 0.99-11-g3e10396
|
||||
#### $$VERSION$$ 0.99-12-gf53e9ce
|
||||
#
|
||||
|
||||
# uncomment the following lines to overwrite info and help messages
|
||||
@ -79,7 +79,7 @@ if [ "$1" = "startbot" ];then
|
||||
# remind bot of start, now uses config store
|
||||
setConfigKey "startupaction" "await"
|
||||
else
|
||||
# things to do only at source, eg. after startup
|
||||
# call my_startup when first message arrives
|
||||
if [[ "$(getConfigKey "startupaction")" != "done"* ]]; then
|
||||
_exec_if_function my_startup
|
||||
setConfigKey "startupaction" "done $(date)"
|
||||
|
Loading…
Reference in New Issue
Block a user