-
Notifications
You must be signed in to change notification settings - Fork 10
[DRAFT] Add dummy bot #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Thank you! |
cmaureir
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the initial kick 👯
| @@ -0,0 +1,19 @@ | |||
| import os | |||
|
|
|||
| from dotenv import load_dotenv | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the goal of using dotenv? load the DISCORD_TOKEN?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, the DISCORD_TOKEN is loaded from .env file.
| print(f"{client.user} has connected to Discord!") | ||
|
|
||
|
|
||
| client.run(TOKEN) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we will be using Python 3.7+ and discord.py 2.0+
so we could adopt the asyncio recommended structure:
https://discordpy.readthedocs.io/en/latest/migrating.html?highlight=asyncio%20run#asyncio-event-loop-changes for having our own async loop
|
Opened a new PR instead, here: #8 |
The bot just reports if a
userconnected to Discord.Just smth. working 🙃