|  | Commit message (Collapse) | Author | Age | Lines | 
|---|
| |\  
| | 
| | 
| | 
| | | # Conflicts:
#	bot/constants.py | 
| | |\  
| | | 
| | | | Adds Member Checks Before Changing Voice | 
| | | | 
| | | 
| | | 
| | | 
| | | | Updates the voice ban action so the infraction pardoning is always run,
and so all operations are handled in the _scheduler. Updates tests. | 
| | | |\ |  | 
| | | | | |  | 
| | | | | 
| | | | 
| | | | 
| | | | 
| | | | 
| | | | 
| | | | | Adds a check that checks if the user object is an instance of guild
member, before performing guild operations. Adds tests.
Signed-off-by: Hassan Abouelela <[email protected]> | 
| | |\ \ \ |  | 
| | | |\ \ \  
| | | | |/  
| | | |/| |  | 
| | | |\ \ \ |  | 
| | | |\ \ \ \ |  | 
| | | | | | | | 
| | | | | | | 
| | | | | | | 
| | | | | | | 
| | | | | | | | An arbitrary cutoff score of 80 is chosen because it works. A bug in
the test for the same command is also fixed. | 
| | | |_|_|/ /  
| |/| | | | |  | 
| | | |_|/ /  
| |/| | | |  | 
| | | | | | |  | 
| | | | | | |  | 
| | | | | | 
| | | | | 
| | | | | 
| | | | | 
| | | | | 
| | | | | | Cleans up the tests related to the voice sync/kick functions by adding a
helper method to simplify mocking. | 
| | | | | | 
| | | | | 
| | | | | 
| | | | | 
| | | | | | Cleans up the silence tests by removing unneeded or repeated mocks.
Simplifies tests where possible by joining similar tests. | 
| | | | | | 
| | | | | 
| | | | | 
| | | | | 
| | | | | | Moves the tests for the helper method `send_message` to simplify tests,
and avoid repeated code. | 
| | | | | | |  | 
| | | | | | 
| | | | | 
| | | | | 
| | | | | 
| | | | | | Changes the signatures of a few helper methods to make them more
concise and understandable. | 
| |\| | | | 
| | | | | 
| | | | | 
| | | | | 
| | | | | 
| | | | | 
| | | | | 
| | | | | | Signed-off-by: Hassan Abouelela<[email protected]>
# Conflicts
# bot/exts/moderation/silence.py
# bot/exts/moderation/test_silence.py | 
| | | | | | 
| | | | | 
| | | | | 
| | | | | 
| | | | | | Forgot to remove these when removing `loop_is_running` in a previous
commit. | 
| | | | | | |  | 
| | | | | | |  | 
| | | | | | |  | 
| | | |_|/  
| |/| | |  | 
| | | | | 
| | | | 
| | | | 
| | | | | Signed-off-by: Hassan Abouelela <[email protected]> | 
| | | | | 
| | | | 
| | | | 
| | | | 
| | | | 
| | | | | Updates changes made in the PR to be more inline with style guide.
Signed-off-by: Hassan Abouelela <[email protected]> | 
| | | | | 
| | | | 
| | | | 
| | | | 
| | | | 
| | | | 
| | | | 
| | | | | Refractors the voice sync helper function into two different functions,
one for each purpose. Moves the afk_channel get/creation code to its own
function. Updates tests.
Signed-off-by: Hassan Abouelela <[email protected]> | 
| | | | | 
| | | | 
| | | | 
| | | | 
| | | | 
| | | | 
| | | | | Changes all usages of bot.constant to use dotted path to remove
confusion and namespace collision.
Signed-off-by: Hassan Abouelela <[email protected]> | 
| | | | | 
| | | | 
| | | | 
| | | | | Signed-off-by: Hassan Abouelela <[email protected]> | 
| | | | | 
| | | | 
| | | | 
| | | | 
| | | | 
| | | | 
| | | | 
| | | | | VoiceChat sync only needs to be called when the command is invoked,
instead of while updating permissions. Moved call to command function to
 reflect that, and fixed failing tests.
Signed-off-by: Hassan Abouelela <[email protected]> | 
| | | | | 
| | | | 
| | | | 
| | | | 
| | | | 
| | | | 
| | | | | Refractors the send message function in silence to make it more
understandable and flexible.
Signed-off-by: Hassan Abouelela <[email protected]> | 
| | | | | 
| | | | 
| | | | | Co-authored-by: Mark <[email protected]> | 
| | | | | 
| | | | 
| | | | 
| | | | 
| | | | 
| | | | 
| | | | | Removes the AnyChannel converter in favor of a combination of Text and
Voice converters.
Signed-off-by: Hassan Abouelela <[email protected]> | 
| | | | | 
| | | | 
| | | | 
| | | | | Signed-off-by: Hassan Abouelela <[email protected]> | 
| | | | | 
| | | | 
| | | | 
| | | | | Signed-off-by: Hassan Abouelela <[email protected]> | 
| | | | | 
| | | | 
| | | | 
| | | | 
| | | | 
| | | | | Adds tests for helper functions in the silence cog.
Signed-off-by: Hassan Abouelela <[email protected]> | 
| | | | | 
| | | | 
| | | | 
| | | | | Signed-off-by: Hassan Abouelela <[email protected]> | 
| |\| | | |  | 
| | |\ \ \ |  | 
| | | |\ \ \ |  | 
| | | | | | | 
| | | | | | 
| | | | | | 
| | | | | | 
| | | | | | | The classes no longer hold any state since they can use the global bot
instance. | 
| | | | | | | 
| | | | | | 
| | | | | | 
| | | | | | 
| | | | | | | They're pretty close to being fully static classes, but it's difficult
to make the name attribute a static abstract property. | 
| | | | |_|/  
| | |/| | |  | 
| | | |/ /  
| |/| | |  | 
| |/ / /  
| | |   
| | |   
| | |   
| | |   
| | |   
| | |   
| | | | Adds an optional channel parameter to silence and unsilence commands,
and adds ability to silence voice channels.
TODO: New Tests
Signed-off-by: Hassan Abouelela <[email protected]> | 
| |\ \ \  
| | | | 
| | | | | Added interleaving text in code blocks option | 
| | | | | |  | 
| |\ \ \ \ |  |