paveL1boyko / ShitCoinBot

3 stars 0 forks source link

Sessions not found error #1

Open TemoSulava opened 6 days ago

TemoSulava commented 6 days ago

When starting a bot, it does not show the menu 1) start session 2) start bot. It directly goes to start the bot, hence it fails since there is no session created from fresh install yet.

UPD1: fixed this issue by running the python main.py. But still, bot is broken:

` File "C:\Users\user\Desktop\Coding_Projects\pixelbot\ShitCoinBot\main.py", line 13, in asyncio.run(main()) │ │ └ <function main at 0x00000000018E0540> │ └ <function run at 0x0000000003996CA0> └ <module 'asyncio' from 'C:\Python311\Lib\asyncio\init.py'>

File "C:\Python311\Lib\asyncio\runners.py", line 190, in run return runner.run(main) │ │ └ <coroutine object main at 0x0000000007508940> │ └ <function Runner.run at 0x0000000003A067A0> └ <asyncio.runners.Runner object at 0x0000000001A9F650> File "C:\Python311\Lib\asyncio\runners.py", line 118, in run return self._loop.run_until_complete(task) │ │ │ └ <Task pending name='Task-1' coro=<main() running at C:\Users\user\Desktop\Coding_Projects\pixelbot\ShitCoinBot\main.py:8> wai... │ │ └ <function BaseEventLoop.run_until_complete at 0x0000000003A04360> │ └ └ <asyncio.runners.Runner object at 0x0000000001A9F650> File "C:\Python311\Lib\asyncio\base_events.py", line 637, in run_until_complete self.run_forever() │ └ <function ProactorEventLoop.run_forever at 0x0000000003AC74C0> └ File "C:\Python311\Lib\asyncio\windows_events.py", line 321, in run_forever super().run_forever() File "C:\Python311\Lib\asyncio\base_events.py", line 604, in run_forever self._run_once() │ └ <function BaseEventLoop._run_once at 0x0000000003A060C0> └ File "C:\Python311\Lib\asyncio\base_events.py", line 1909, in _run_once handle._run() │ └ <function Handle._run at 0x000000000395C5E0> └ <Handle Task.task_wakeup()> File "C:\Python311\Lib\asyncio\events.py", line 80, in _run self._context.run(self._callback, *self._args) │ │ │ │ │ └ <member '_args' of 'Handle' objects> │ │ │ │ └ <Handle Task.task_wakeup()> │ │ │ └ <member '_callback' of 'Handle' objects> │ │ └ <Handle Task.task_wakeup()> │ └ <member '_context' of 'Handle' objects> └ <Handle Task.task_wakeup()>

File "C:\Users\user\Desktop\Coding_Projects\pixelbot\ShitCoinBot\bot\launcher.py", line 88, in run_bot_with_delay await run_bot(tg_client=tg_client, proxy=proxy, additional_data=additional_data) │ │ │ └ [{'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 17_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0... │ │ └ None │ └ <pyrogram.client.Client object at 0x000000000756B890> └ <function run_bot at 0x00000000070C5580>

File "C:\Users\user\Desktop\Coding_Projects\pixelbot\ShitCoinBot\bot\core\bot.py", line 119, in run_bot await CryptoBot(tg_client=tg_client, additional_data=additional_data).run(proxy=proxy) │ │ │ └ None │ │ └ [{'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 17_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0... │ └ <pyrogram.client.Client object at 0x000000000756B890> └ <class 'bot.core.bot.CryptoBot'>

File "C:\Users\user\Desktop\Coding_Projects\pixelbot\ShitCoinBot\bot\core\bot.py", line 94, in run if self.user_data.minigame: │ └ None └ <bot.core.bot.CryptoBot object at 0x00000000075637D0>

AttributeError: 'NoneType' object has no attribute 'minigame'`

oboroccv commented 5 days ago

тоже самое