add stats
This commit is contained in:
8
main.py
8
main.py
@@ -1,4 +1,5 @@
|
||||
import os
|
||||
import sys
|
||||
from random import randrange, choice
|
||||
|
||||
import telebot
|
||||
@@ -178,4 +179,9 @@ def do_action(message: Message):
|
||||
mongo.inc(message.from_user.username, message.chat.id)
|
||||
|
||||
|
||||
bot.polling()
|
||||
arg = sys.argv[-1]
|
||||
if arg == 'bot':
|
||||
bot.polling()
|
||||
else:
|
||||
from api import app
|
||||
app.run(host="0.0.0.0", port=1238)
|
||||
|
||||
Reference in New Issue
Block a user