mirror of
https://github.com/danog/id3bot.git
synced 2024-11-30 04:19:02 +01:00
Fixed bugs
This commit is contained in:
parent
bb768b4596
commit
0efec7dce1
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
||||
*~
|
||||
count
|
||||
token
|
||||
|
@ -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
|
||||
|
@ -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."
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user