shamhi / NotCoinBot

Bot that mines coins in Notcoin
https://t.me/notcoin_bot
MIT License
66 stars 21 forks source link

bot does not start or work after starting on telegram and /stat or /balance returns this error #32

Open lord-dubious opened 4 months ago

lord-dubious commented 4 months ago

Object does not exist Traceback (most recent call last): File "/home/dark/.local/lib/python3.10/site-packages/pyrogram/dispatcher.py", line 240, in handler_worker await handler.callback(self.client, *args) File "/home/dark/Desktop/NotCoinBot/bot/plugins/nc_manage.py", line 73, in send_stats start_balance = await get_start_balance(session_id=session_id) File "/home/dark/Desktop/NotCoinBot/db/functions.py", line 102, in get_start_balance stat = await Statistic.get(session=session) File "/usr/local/lib/python3.10/dist-packages/tortoise/queryset.py", line 1020, in _execute raise DoesNotExist("Object does not exist") tortoise.exceptions.DoesNotExist: Object does not exist

shamhi commented 4 months ago

you need to start bot with command /click on, before send /stat or /balance

lord-dubious commented 4 months ago

did that already the bot is frozen after /click on and stays like that forever

shamhi commented 4 months ago

to stop the bot after /click on, you need to send /click off instead of pressing Ctrl+C

lord-dubious commented 4 months ago

the bot does not even start it stays hooked when you use the start command

shamhi commented 4 months ago

the bot does not even start it stays hooked when you use the start command

try to delete config/database.db and run bot

lord-dubious commented 4 months ago
  1. Создать сессию
  2. Запустить бота С возможностью управления через телеграмм
  3. Запустить бота БЕЗ возможности управления через телеграмм Выберите ваше действие: 2

14:57:31 | INFO | 103 - Бот запущен на 1 сессиях. Отправьте /help в чате Избранное/Saved Messages

14:57:58 | INFO | 38 - Кликер запущен командой /click on

i re installed the bot

lord-dubious commented 4 months ago

it is still stuck here

lord-dubious commented 4 months ago
  1. Создать сессию
  2. Запустить бота С возможностью управления через телеграмм
  3. Запустить бота БЕЗ возможности управления через телеграмм Выберите ваше действие: 2

14:57:31 | INFO | 103 - Бот запущен на 1 сессиях. Отправьте /help в чате Избранное/Saved Messages

14:57:58 | INFO | 38 - Кликер запущен командой /click on

i re installed the bot

config/database.db does not even get created

shamhi commented 4 months ago

problem is different, check your time on PC, if it's wrong, bot won't work

lord-dubious commented 4 months ago

im using vps

shamhi commented 4 months ago

well, try to uncomment this lines and run image

lord-dubious commented 4 months ago
  1. Создать сессию
  2. Запустить бота С возможностью управления через телеграмм
  3. Запустить бота БЕЗ возможности управления через телеграмм Выберите ваше действие: 2

16:06:32 | INFO | 103 - Бот запущен на 1 сессиях. Отправьте /help в чате Избранное/Saved Messages

INFO:pyrogram.connection.connection:Connecting... INFO:pyrogram.connection.connection:Connected! Production DC4 - IPv4 INFO:pyrogram.session.session:NetworkTask started INFO:pyrogram.session.session:Session initialized: Layer 158 INFO:pyrogram.session.session:Device: CPython 3.10.12 - Pyrogram 2.0.106 INFO:pyrogram.session.session:System: Linux 5.2.0 (en) INFO:pyrogram.session.session:Session started INFO:pyrogram.session.session:PingTask started INFO:pyrogram.client:[dubious] [LOAD] MessageHandler("get_notcoin_url") in group 0 from "bot.plugins.nc_manage" INFO:pyrogram.client:[dubious] [LOAD] MessageHandler("launch_clicker") in group 0 from "bot.plugins.nc_manage" INFO:pyrogram.client:[dubious] [LOAD] MessageHandler("send_help_text") in group 0 from "bot.plugins.nc_manage" INFO:pyrogram.client:[dubious] [LOAD] MessageHandler("send_my_balance") in group 0 from "bot.plugins.nc_manage" INFO:pyrogram.client:[dubious] [LOAD] MessageHandler("send_stats") in group 0 from "bot.plugins.nc_manage" INFO:pyrogram.client:[dubious] Successfully loaded 5 plugins from "bot/plugins" INFO:pyrogram.dispatcher:Started 10 HandlerTasks 16:07:01 | INFO | 38 - Кликер запущен командой /click on

lord-dubious commented 4 months ago

16:15:30 | WARNING | 447 - dubious | Доступ к API запрещен: 403 16:15:30 | INFO | 448 - dubious | Сплю 35 сек

lord-dubious commented 4 months ago

note i am using residential proxies

shamhi commented 4 months ago

try to use another proxy