-
Notifications
You must be signed in to change notification settings - Fork 1
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
Core #8
base: dev
Are you sure you want to change the base?
Conversation
I'd change it so that it generates an empty JSON file if it doesn't find the config and gives an error telling used to fill it in. More convenient and better ensures that the user doesn't make any mistakes while making the file. |
The issue with empty json file would be the same. We could include a template if it helps? |
|
@LaVieEstDure @Heasummn can you guys check and approve and one of you merge? |
def init_bot(): | ||
"""Creates a discord client connection""" | ||
return discord.Client() | ||
|
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.
Should we be using the discord.bot.ext
frameworks? Also this feels like an unpythonic function.
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.
not sure what that is
@client.event | ||
async def on_ready(): | ||
"""Logs the bot in for operations""" | ||
print('logged in as {}'.format(client.user.name)) |
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.
We said we'd support 3.6+, yeah? Should use f-strings where we can then
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've never used them, can you clone and make the changes? I would like to see.
This PR closes out #7 with the addition of a bot.py file and a settings file. You'll need to make a config.json file. It looks like this: