parent
5ef10ded51
commit
cd73cb4931
@ -0,0 +1,5 @@
|
||||
New features:
|
||||
+ Auto self-resurrection after random bot-suicide.
|
||||
+ This `/patchnotes` command.
|
||||
+ Instant message confirmation for `/status` command.
|
||||
|
@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
|
||||
|
||||
KEY=$1
|
||||
CHATID=$2
|
||||
TIME="4"
|
||||
URL="https://api.telegram.org/bot$KEY/sendMessage"
|
||||
MESSAGE="Confirmation: The server appears online!
|
||||
One moment while I collect some server information..."
|
||||
|
||||
curl -s --max-time $TIME -d "chat_id=${CHATID}&disable_web_page_preview=1&text=${MESSAGE}" $URL >/dev/null
|
||||
|
Loading…
Reference in new issue