add stats

This commit is contained in:
Administrator
2023-11-12 17:59:22 +03:00
parent c3b189c57b
commit 0ba5ef0789
4 changed files with 71 additions and 1 deletions

View File

@@ -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)