Skip to content
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

fix: cleanup code #103

Draft
wants to merge 27 commits into
base: master
Choose a base branch
from
Draft

fix: cleanup code #103

wants to merge 27 commits into from

Conversation

ooliver1
Copy link
Member

Plans:

  • Module for code
  • Bot subclass with startup func for client session
  • Consistency of style
  • Pre-commit to help with a consistent style
  • Allow people to turn off linking loops so they dont destroy test servers by accident
  • Not use questionable import styles (like the ones in link and autopaste, wtf epic)
  • Use proper cog related constants
  • Use _ for unused variables
  • Resolve pyright basic type issues

@TAG-Epic
Copy link
Contributor

Why should this be a module?

previous/__main__.py Outdated Show resolved Hide resolved
elif isinstance(error, MissingRole):
role = ctx.guild.get_role(int(error.missing_role)) # type: ignore
await ctx.send(f'"{role.name}" is required to use this command.') # type: ignore
else:

This comment was marked as off-topic.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I simply transferred the current error handler, half out of scope even though this entire PR is quite feature/fix creep

This comment was marked as off-topic.

@ooliver1
Copy link
Member Author

Why should this be a module?

All the code in one encapsulated place, who get main.py lost in config and meta files when it can be in one place

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