Skip to content

Commit

Permalink
Token outside and TODO list
Browse files Browse the repository at this point in the history
  • Loading branch information
z0r3f committed Jun 13, 2021
1 parent 2c29339 commit 49995a8
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/wallbot.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
- [x] Definir dependencias
- [ ] Probar dependencias
- [x] Externalizar TOKEN
- [ ] Preparar directorio /data
- [ ] Logging
- [ ] Docker
2 changes: 2 additions & 0 deletions depends
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
requests==2.25.1
PyTelegramBotAPI==3.7.9
4 changes: 2 additions & 2 deletions ssbo.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
import logging
import sys
import threading
import os

TOKEN = "SUSTITUIR-POR-EL-TOKEN-DEL-BOT-DE-TELEGRAM"
TOKEN = os.getenv("BOT_TOKEN", "Bot Token does not exist")
URL = "https://api.telegram.org/bot{}/".format(TOKEN)
# URL_ITEMS = "https://es.wallapop.com/rest/items"
URL_ITEMS = "https://api.wallapop.com/api/v3/general/search"

db = DBHelper()
Expand Down

0 comments on commit 49995a8

Please sign in to comment.