Skip to content

Troubleshooting

Eugenio Turano edited this page Aug 21, 2016 · 23 revisions

Here we post some of the more common asked questions regards problems with the bot:

  1. Can't see the commands list of the bot while writing:

I know, write some command on the phone is not the best, the command list is on our command wiki, you can add the command list using this format:

help - help add - add a pokemon addbyrarity - add with rarity clear - clear all the pokemon rem - remove a pokemon list - list all the scanned pokemon save - saves the configuration load - load a saved configuration lang - Sets pokemon names language.

copy that and paste it to the @botfather after stat you writed to him /setcommands

  1. Token Invalid Syntax

That's usually because the token inside the config-bot.json file is not added inside the quotation marks, example:

right: { "TELEGRAM_TOKEN": "11.....bvesj", "DEFAULT_LANG": "en" }

wrong: { "TELEGRAM_TOKEN": 11.....bvesj, "DEFAULT_LANG": "en" } 3. sqlite3.OperationalError: unable to open database file

That's usually because the pogomBOT files were not moved to the pogom folder or because the database had a different user than the pogobot script, example: output of ls -lah: total 20496 drwxr-xr-x 24 user staff 816B 19 Aug 18:59 . drwxr-xr-x+ 61 user staff 2.0K 19 Aug 18:58 .. -rw-r--r--@ 1 user staff 10K 19 Aug 18:59 .DS_Store drwxr-xr-x 15 user staff 510B 19 Aug 19:29 .git -rw-r--r-- 1 user staff 609B 18 Aug 21:09 .gitignore -rw-r--r-- 1 user staff 6B 17 Aug 11:26 .python-version -rw-r--r-- 1 user staff 569B 9 Aug 14:09 Dockerfile -rw-r--r-- 1 user staff 462B 9 Aug 14:09 ISSUE_TEMPLATE.md -rw-r--r-- 1 user staff 1.0K 9 Aug 14:09 LICENSE -rw-r--r-- 1 user staff 5.4K 19 Aug 09:47 README.md -rw-r--r--@ 1 user staff 93B 19 Aug 19:01 config-bot.json -rw-r--r-- 1 root staff 3.5K 19 Aug 19:27 config.json -rw-r--r-- 1 user staff 3.2K 17 Aug 10:15 deploy-to-jelastic.png -rw-r--r-- 1 user staff 1.8K 17 Aug 10:15 icon-32x32.png -rw-r--r-- 1 user staff 611B 17 Aug 10:15 manifest.jps -rw-r--r-- 1 user staff 10K 19 Aug 18:58 pogobot.py drwxr-xr-x 16 user staff 544B 19 Aug 09:47 pogom -rw-r--r-- 1 root staff 5.9M 19 Aug 21:15 pogom.db -rw-r--r-- 1 root staff 32K 19 Aug 19:30 pogom.db-shm -rw-r--r-- 1 root staff 4.0M 19 Aug 21:16 pogom.db-wal -rw-r--r-- 1 user staff 292B 9 Aug 14:09 requirements.txt -rw-r--r-- 1 user staff 2.7K 18 Aug 21:09 runserver.py drwxr-xr-x 13 user staff 442B 18 Aug 21:09 static drwxr-xr-x 6 user staff 204B 18 Aug 21:09 templates

In this case the pogom.db is root (means that you usuallu run sudo runserver.py while the pogobot.py is run without the sudo, the best is not to run anything with sudo, it usually messes things up)

Something else?

If it's a bug please open an Issue If you want to contact the creators write to our telegram group: http://telegram.me/pogomBOTgroup

Clone this wiki locally