Better-Cpp / Better-C-Bot

Bot used in the Better C++ discord server
MIT License
6 stars 7 forks source link

Code Cleanup #10

Closed SqueakyBeaver closed 3 years ago

SqueakyBeaver commented 3 years ago

I want to start off by saying that all of this is just a matter of preference and style.

Overall, this bot is amazing 😁

Yuhanun commented 3 years ago

Feel free to clean it up, the thing is that uh some of the code is copied over from R. danny so it's different, and different people contribute to the source.

1trackprojects1 commented 3 years ago

Feel free to clean it up, the thing is that uh some of the code is copied over from R. danny so it's different, and different people contribute to the source.

Hey do you mind checking your email i have sent you a message :) or leave your discord tag/telegram id so i can add you?

The-personified-devil commented 3 years ago

When grepping the sources I only found one instance of .format being used. And afaik that instance is unavoidable because the f"" way can't contain stuff with backslashes, which is in required in that instance to separate each item of a list into a new line (this line).

The-personified-devil commented 3 years ago

When it comes to has_role() then the current implementation is shorter both to call and overall, which is why I think I'll keep it.

The-personified-devil commented 3 years ago

If no one mentions other things to clean up, I will declare the PR ready for merge.