ConnorSwis / casino-bot

A casino discord bot written in Python
MIT License
68 stars 30 forks source link

how do i run this bot? i configured the config.yml but i dont know how to clone the repository or run it #53

Open Sak1nn opened 1 month ago

Sak1nn commented 1 month ago

i dont really know python and i just want to have fun with a bot with my friends but it doesnt work

Sak1nn commented 1 month ago

when i try to run bot.py it shows this even though the token is correct

PS C:\Users\sbula\Downloads\casino-bot-main> & C:/Python312/python.exe c:/Users/sbula/Downloads/casino-bot-main/discord/bot.py c:\Users\sbula\Downloads\casino-bot-main\discord\bot.py:16: RuntimeWarning: coroutine 'BotBase.load_extension' was never awaited client.load_extension(f'cogs.{filename[:-3]}') RuntimeWarning: Enable tracemalloc to get the object allocation traceback 2024-07-20 20:09:10 INFO discord.client logging in using static token Traceback (most recent call last): File "C:\Python312\Lib\site-packages\discord\http.py", line 803, in static_login data = await self.request(Route('GET', '/users/@me')) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Python312\Lib\site-packages\discord\http.py", line 745, in request raise HTTPException(response, data) discord.errors.HTTPException: 401 Unauthorized (error code: 0): 401: Unauthorized

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "c:\Users\sbula\Downloads\casino-bot-main\discord\bot.py", line 18, in client.run(TOKEN) File "C:\Python312\Lib\site-packages\discord\client.py", line 860, in run asyncio.run(runner()) File "C:\Python312\Lib\asyncio\runners.py", line 194, in run return runner.run(main) ^^^^^^^^^^^^^^^^ File "C:\Python312\Lib\asyncio\runners.py", line 118, in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Python312\Lib\asyncio\base_events.py", line 687, in run_until_complete return future.result() ^^^^^^^^^^^^^^^ File "C:\Python312\Lib\site-packages\discord\client.py", line 849, in runner await self.start(token, reconnect=reconnect) File "C:\Python312\Lib\site-packages\discord\client.py", line 777, in start await self.login(token) File "C:\Python312\Lib\site-packages\discord\client.py", line 612, in login data = await self.http.static_login(token) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Python312\Lib\site-packages\discord\http.py", line 807, in static_login raise LoginFailure('Improper token has been passed.') from exc discord.errors.LoginFailure: Improper token has been passed. PS C:\Users\sbula\Downloads\casino-bot-main>

plawandos commented 1 month ago

https://github.com/plawandos/HOUSE-2

you can use my version which fixes a lot of things. that saying his code works well you just need python 3.7.0 and the exact version of the modules listed in requirement.txt