Skip to content

Commit

Permalink
Aggiunto il file CONFIG.py
Browse files Browse the repository at this point in the history
In questo modo, si potrà inserire facilmente il TOKEN del bot.
  • Loading branch information
MarcoBuster committed Oct 18, 2016
1 parent dd5801f commit 9613c83
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

import urllib.request

from CONFIG import TOKEN

import API
from Callback import Callback
from Inlinemode import Inline
Expand Down Expand Up @@ -41,7 +43,7 @@ class InlineQuery(botogram.objects.base.BaseObject):
botogram.Update.optional["inline_query"] = InlineQuery

import botogram
bot = botogram.create("TOKEN")
bot = botogram.create(TOKEN)
bot.lang = "it"

import sqlite3
Expand Down
12 changes: 12 additions & 0 deletions CONFIG.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
'''
Prima di avviare il bot, devi modificare questo file
Per avere il token del bot, bisogna:
1. Avviare il bot @BotFather
2. Eseguire il comando /newbot e seguire le istruzioni
3. Copiare il token inviato da @BotFather
Una volta fatto, incollare il token al posto di INSERT YOUR TOKEN HERE
'''

TOKEN = "INSERT YOUR TOKEN HERE"

0 comments on commit 9613c83

Please sign in to comment.