|  | Commit message (Collapse) | Author | Age | Lines | 
|---|
| | |  | 
| | 
| 
| | Co-authored-by: ChrisJL <[email protected]> | 
| | 
| 
| | Co-authored-by: ChrisJL <[email protected]> | 
| |\ |  | 
| | |\  
| | | 
| | | | Talentpool: join_at -> joined_at | 
| | |/ |  | 
| | |\  
| | | 
| | | 
| | | 
| | | | python-discord/fix-reference-role-constant-in-!server
fix reference role constant in !server | 
| | |/ |  | 
| | |\  
| | | 
| | | | Information: make !server use moderation_team | 
| | |/  
| |   
| | | We use the ping role instead of the team role here, leading to inaccuracies. | 
| | | |  | 
| |/ |  | 
| |\  
| | 
| | | Make use of the new Discord features | 
| | |\  
| |/  
|/| |  | 
| |\ \  
| | | 
| | | | Enabled charinfo for discord_py channel. | 
| | |\ \  
| |/ /  
|/| | |  | 
| | | | 
| | | 
| | | 
| | | 
| | | 
| | | | * feat: add for-else tag
Co-authored-by: Joe Banks <[email protected]>
Co-authored-by: Xithrius <[email protected]> | 
| |\ \ \  
| | | | 
| | | | | Drop GPL Dependencies | 
| | |\ \ \  
| |/ / /  
|/| | | |  | 
| |\ \ \ \  
| | | | | 
| | | | | | Implements Voice Channel Muting | 
| | |\ \ \ \  
| |/ / / /  
|/| | | | |  | 
| | | | | | 
| | | | | 
| | | | | 
| | | | | 
| | | | | 
| | | | | 
| | | | | | Fixes a bug that stopped the duration `forever` from getting used as a
valid duration for silence.
Signed-off-by: Hassan Abouelela <[email protected]> | 
| | |\ \ \ \ |  | 
| | | | | | | 
| | | | | | 
| | | | | | 
| | | | | | 
| | | | | | 
| | | | | | 
| | | | | | 
| | | | | | | Updates the shh and unshh commands from the error handler to accept
channel and kick arguments, to give them the same interface as the
silence and unsilence command.
Signed-off-by: Hassan Abouelela <[email protected]> | 
| | | | | | | 
| | | | | | 
| | | | | | 
| | | | | | 
| | | | | | 
| | | | | | 
| | | | | | | Updates the silence command to accept the silence duration or channel as
 the first argument to the command. Updates tests.
Signed-off-by: Hassan Abouelela <[email protected]> | 
| | | | | | | 
| | | | | | 
| | | | | | 
| | | | | | 
| | | | | | 
| | | | | | 
| | | | | | | Uses `.format` to create silence and unsilence messages instead of
`.replace`.
Signed-off-by: Hassan Abouelela <[email protected]> | 
| | | | | | | 
| | | | | | 
| | | | | | 
| | | | | | | Signed-off-by: Hassan Abouelela <[email protected]> | 
| | | | | | | 
| | | | | | 
| | | | | | 
| | | | | | 
| | | | | | 
| | | | | | 
| | | | | | | Restructures silence cog helper methods to group relation functions in a
 more logical manner.
Signed-off-by: Hassan Abouelela <[email protected]> | 
| | | | | | | 
| | | | | | 
| | | | | | 
| | | | | | 
| | | | | | 
| | | | | | 
| | | | | | | Changes logging statement levels and messages to correctly express
intent.
Signed-off-by: Hassan Abouelela <[email protected]> | 
| | | | | | | 
| | | | | | 
| | | | | | 
| | | | | | | Signed-off-by: Hassan Abouelela <[email protected]> | 
| | |\ \ \ \ \ |  | 
| | | |\ \ \ \ \ |  | 
| | |/ / / / / /  
| | | | | | |   
| | | | | | |   
| | | | | | |   
| | | | | | |   
| | | | | | | | Uses itertools.product to eliminate some nested for loops in tests.
Signed-off-by: Hassan Abouelela <[email protected]> | 
| | | | | | | | 
| | | | | | | 
| | | | | | | 
| | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]> | 
| | | | | | | | 
| | | | | | | 
| | | | | | | 
| | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]> | 
| | | | | | | | 
| | | | | | | 
| | | | | | | 
| | | | | | | 
| | | | | | | 
| | | | | | | 
| | | | | | | | Duplicates existing silence and unsilence cache tests for voice
 channels.
Signed-off-by: Hassan Abouelela <[email protected]> | 
| | | | | | | | 
| | | | | | | 
| | | | | | | 
| | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]> | 
| | | | | | | | 
| | | | | | | 
| | | | | | | 
| | | | | | | 
| | | | | | | 
| | | | | | | 
| | | | | | | | Reduces the number of members created for each test to the bare minimum
required.
Signed-off-by: Hassan Abouelela <[email protected]> | 
| | |\ \ \ \ \ \ |  | 
| | |\ \ \ \ \ \ \ |  | 
| | | | | | | | | | 
| | | | | | | | | 
| | | | | | | | | 
| | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]> | 
| | | | | | | | | | 
| | | | | | | | | 
| | | | | | | | | 
| | | | | | | | | 
| | | | | | | | | 
| | | | | | | | | 
| | | | | | | | | | Changes the mock used for creating an erroneous function in the silence
tests cog to use the side effect property instead of an extra function.
Signed-off-by: Hassan Abouelela <[email protected]> | 
| | | | | | | | | | 
| | | | | | | | | 
| | | | | | | | | 
| | | | | | | | | 
| | | | | | | | | 
| | | | | | | | | 
| | | | | | | | | 
| | | | | | | | | | Removes redundant functionality from the `test_unsilence_helper_fail`
test as it is covered by another test. Keeps the functionality that
isn't being tested elsewhere.
Signed-off-by: Hassan Abouelela <[email protected]> | 
| | | | | | | | | | 
| | | | | | | | | 
| | | | | | | | | 
| | | | | | | | | 
| | | | | | | | | 
| | | | | | | | | 
| | | | | | | | | | Combine two tests that are responsible for checking the silence helper
uses the correct channel and message.
Signed-off-by: Hassan Abouelela <[email protected]> | 
| | |\ \ \ \ \ \ \ \ |  | 
| | | | | | | | | | | 
| | | | | | | | | | 
| | | | | | | | | | 
| | | | | | | | | | 
| | | | | | | | | | 
| | | | | | | | | | 
| | | | | | | | | | | Adds a missing test assertion, and seperates the voice and text
components of a test.
Signed-off-by: Hassan Abouelela <[email protected]> | 
| | | | | | | | | | | 
| | | | | | | | | | 
| | | | | | | | | | 
| | | | | | | | | | 
| | | | | | | | | | 
| | | | | | | | | | 
| | | | | | | | | | | Adds a missing test assertion, and seperates the voice and text
components of a test.
Signed-off-by: Hassan Abouelela <[email protected]> | 
| | | | | | | | | | | 
| | | | | | | | | | 
| | | | | | | | | | 
| | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]> | 
| | | | | | | | | | | 
| | | | | | | | | | 
| | | | | | | | | | 
| | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]> | 
| | |\ \ \ \ \ \ \ \ \ |  |