-
-
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
Integrate and modify utils
module from PygameCommunityBot
, add initialization code and config
helper module
#3
Conversation
…and events module
events
and utils
modules, add initialization code and config fileevents
and utils
modules from PygameCommunityBot
, add initialization code and config file
) | ||
|
||
if config.client is None: | ||
config.client = 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.
the bit of code above this line in this function seems to be repeated here and also in utils
. How about extracting this functionality into something like _init()
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.
This is intentional, splitting off this two-liner into a separate function would increase code complexity for a small gain IMO. I admit that it is repetitive, but it feels easier to reason about this way.
events
and utils
modules from PygameCommunityBot
, add initialization code and config fileutils
module from PygameCommunityBot
, add initialization code and config
helper module
We can squash merge this one.