add /edited_message example to mycommands.sh

This commit is contained in:
Kay Marquardt (Gnadelwartz) 2020-06-17 18:36:05 +02:00
parent 18f0ace928
commit 91ced1fa35
2 changed files with 8 additions and 3 deletions

View File

@ -8,7 +8,7 @@
# #### if you start to develop your own bot, use the clean version of this file:
# #### mycommands.clean
#
#### $$VERSION$$ v0.96-0-g3871ca9
#### $$VERSION$$ v0.98-dev-33-g18f0ace
#
# uncomment the following lines to overwrite info and help messages
@ -99,6 +99,12 @@ else
send_markdown_message "${CHAT[ID]}" "*${NOTBOTADMIN}*"; return 1
fi
;;
# will we process edited messages also?
'/edited_message'*)
return 1 # no
# but if we do, remove /edited_message
MESSAGE="${MESSAGE#/* }"
;;
esac
case "${MESSAGE}" in

View File

@ -4,7 +4,7 @@
# files: mycommands.sh.clean
# copy to mycommands.sh and add all your commands and functions here ...
#
#### $$VERSION$$ v0.96-0-g3871ca9
#### $$VERSION$$ v0.98-dev-33-g18f0ace
#
##########
@ -72,7 +72,6 @@ else
# a service Message was received
# add your own stuff here
if [ -n "${SERVICE}" ]; then
# example: delete every service message
if [ "${SILENCER}" = "yes" ]; then
delete_message "${CHAT[ID]}" "${MESSAGE[ID]}"