1
0
mirror of https://github.com/danog/id3bot.git synced 2024-11-26 11:54:43 +01:00

Fixed bugs

This commit is contained in:
Daniil Gentili 2016-05-13 17:45:56 +02:00
parent bb768b4596
commit 0efec7dce1
4 changed files with 5 additions and 4 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
*~
count
token

View File

@ -74,7 +74,7 @@ Clone the repository:
git clone --recursive https://github.com/topkecleon/telegram-bot-bash
```
Paste the token on line 9 of commands.sh (instead of tokenhere).
Create a file called token and paste the token in there.
Then start editing the commands.
### Receive data

View File

@ -11,7 +11,7 @@
# This file is public domain in the USA and all free countries.
# Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying)
if [ ! -d "JSON.sh" ]; then
if [ ! -f "JSON.sh/JSON.sh" ]; then
echo "You did not clone recursively! Downloading JSON.sh..."
git clone http://github.com/dominictarr/JSON.sh
echo "JSON.sh has been downloaded. Proceeding."

View File

@ -5,8 +5,8 @@
# Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying)
if [ "$1" = "source" ];then
# Edit the token in here
TOKEN='tokenhere'
# Place the token in the token file
TOKEN=$(cat token)
# Set INLINE to 1 in order to receive inline queries.
# To enable this option in your bot, send the /setinline command to @BotFather.
INLINE=0