AstraaDev / Discord-SelfBot

This SelfBot has a total of about 60 commands to make your life on discord easier. It has a nice and intuitive interface to make it easy to use for everyone, help and explanations for each command, a very complete help command.
https://discord.gg/ckHmZMct5z
MIT License
73 stars 40 forks source link

Error at line 205 in selfbot.py #9

Closed zombi-dev closed 1 year ago

zombi-dev commented 1 year ago
DeprecationWarning: There is no current event loop
  loop = asyncio.get_event_loop()
Traceback (most recent call last):
  File "C:\Users\*****\Desktop\Discord-SelfBot\selfbot.py", line 205, in <module>
    Astraa = discord.Client()
    ^^^^^^^^^^^^^^^^
TypeError: Client.__init__() missing 1 required keyword-only argument: 'intents'

Please fix!

zombi-dev commented 1 year ago

I am gonna try to look into it and try to fix it until I get more help

zombi-dev commented 1 year ago

Fixed issue!

Replaced

#Initialization of the Bot parameters
Astraa = discord.Client()
Astraa = commands.Bot(description='ATIO Tool - SelfBot created by Astraa', command_prefix=prefix, self_bot=True)

with

#Initialization of the Bot parameters
intents = discord.Intents().all()
Astraa = discord.Client(intents=intents)
Astraa = commands.Bot(description='ATIO Tool - SelfBot created by Astraa', command_prefix=prefix, self_bot=True, intents=intents)

from line 204 in selfbot.py

zombi-dev commented 1 year ago

Will close when fix does get added