Skip to content

Conversation

@Kislovskiy
Copy link
Contributor

The bot just reports if a user connected to Discord.
Just smth. working 🙃

@cmaureir
Copy link
Contributor

Thank you!
I guess you brought the CI related changes to this PR, probably because you started the branch from the other branch instead of branch.
In case it was intentional, then there are some conflicts to take care of.

Copy link
Contributor

@cmaureir cmaureir left a 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
Copy link
Contributor

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?

Copy link
Contributor Author

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)
Copy link
Contributor

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

@Kislovskiy
Copy link
Contributor Author

Opened a new PR instead, here: #8

@Kislovskiy Kislovskiy closed this Jun 10, 2023
@Kislovskiy Kislovskiy deleted the add-dummy-bot branch June 10, 2023 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants