|  | Commit message (Collapse) | Author | Age | Lines | 
|---|
| ... |  | 
| | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | 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]> | 
| | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | A typo caused the function to return the text channel for `code/help 1`,
 when it is meant to access `code/help 2`.
Signed-off-by: Hassan Abouelela <[email protected]> | 
| | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | Refractors method signatures and calls to follow python-discord style
guide.
Signed-off-by: Hassan Abouelela <[email protected]> | 
| | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | 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]> | 
| | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | Fixes the channel reported as muted to voice channel chat channels when
silencing voice channels.
Signed-off-by: Hassan Abouelela <[email protected]> | 
| | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]> | 
| | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | Adds an optional parameter to the silence command to enable moderators
to choose if they only update permissions, or kick members too.
As an accompanying feature, the unsilence command now syncs voice
channel permissions too.
Signed-off-by: Hassan Abouelela <[email protected]> | 
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \  
| | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | | into voicechannel-mute | 
| | | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]> | 
| | |/ / / / / / / / / / / / / / /  
| | | | | | | | | | | | | | | |   
| | | | | | | | | | | | | | | |   
| | | | | | | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]> | 
| | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | Notifies invocation channel that the silence command failed to silence
the channel because it could not move members, but roles were updated.
Signed-off-by: Hassan Abouelela <[email protected]> | 
| | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | Adds and calls a function to force a voice channel member to sync
permissions. See #1160 for why this is necessary.
Signed-off-by: Hassan Abouelela <[email protected]> | 
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ |  | 
| | | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | | Refactors imports of silence class to be more inline with the original
import structure.
Signed-off-by: Hassan Abouelela <[email protected]> | 
| | | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | | - Allows spaces in channel name
- Allows channel name to have any capitalization
- Fixed inherited class to general Converter class
Signed-off-by: Hassan Abouelela <[email protected]> | 
| | | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | | 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]> | 
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ |  | 
| | | | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | | | Adds a converter that can decipher more forms of channel mentions, to
lay foundation for voice channel muting.
Signed-off-by: Hassan Abouelela <[email protected]> | 
| | | | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | | | Fixes a bug where calling help with an invalid command would crash out
during fuzzy matching.
Signed-off-by: Hassan Abouelela <[email protected]> | 
| | | | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | | | Makes the network fetch asynchronous to prevent blocking the program.
Signed-off-by: Hassan Abouelela <[email protected]> | 
| | | | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | | | Renames a couple exceptions to include the error suffix, as enforced by
N818.
Signed-off-by: Hassan Abouelela <[email protected]> | 
| | | | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | | | Drops aioping as a dependency for the ping command since it's licenced
under GPL2. Substitutes the site ping with a health-check and status to
compensate.
Signed-off-by: Hassan Abouelela <[email protected]> | 
| | |_|_|_|_|_|_|_|_|_|_|_|/ / / / /  
|/| | | | | | | | | | | | | | | |   
| | | | | | | | | | | | | | | | |   
| | | | | | | | | | | | | | | | |   
| | | | | | | | | | | | | | | | |   
| | | | | | | | | | | | | | | | |   
| | | | | | | | | | | | | | | | | | Replaces Fuzzywuzzy with RapidFuzz, as fuzzywuzzy is licensed under a
GPL2 license.
Signed-off-by: Hassan Abouelela <[email protected]> | 
| | | | | | | | | | | | | | | | | | |  | 
| | | | | | | | | | | | | | | | | | |  | 
| | | | | | | | | | | | | | | | | | |  | 
| | | | | | | | | | | | | | | | | | |  | 
| | | | | | | | | | | | | | | | | | |  | 
| | |_|_|_|_|_|_|_|_|_|_|_|_|_|/ /  
|/| | | | | | | | | | | | | | |   
| | | | | | | | | | | | | | | |   
| | | | | | | | | | | | | | | | | Add `join_role_stats` function that  joins the relevant information (number of members) of the given roles into one group under a pre-specified `name` | 
| | | | | | | | | | | | | | | | |\  
| | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | | https://github.com/python-discord/bot into mbaruh/jam-management | 
| | | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | | Co-authored-by: Bluenix <[email protected]> | 
| | | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | | Co-authored-by: Bluenix <[email protected]> | 
| | | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | | Interestingly enough, the reason doesn't seem to be displayed for channel permission overrides. | 
| | | | | | | | | | | | | | | | |/  
| | | | | | | | | | | | | | | |   
| | | | | | | | | | | | | | | |   
| | | | | | | | | | | | | | | | | Co-authored-by: Bluenix <[email protected]> | 
| | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | The command now sends the details of all channels about to be deleted to the pasting service, and confirmation is done through a reaction by the invoker of the command within a limited time (10 seconds). | 
| | | | | | | | | | | | | | | | | |  | 
| | | | | | | | | | | | | | | | | |  | 
| | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | - An info embed with team the member is in. The team is decided by finding in which channel the member has overwrites.
- Command to move a member from one team to another by changing the permissions of the appropriate team channels.
- A command to end the code jam and delete all the team channels and categories. | 
| | | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | The channel creations are static and clutter the cog class. We want to add more commands to the cog, so we move the static functions away to a separate file first. | 
| | |_|_|_|_|_|_|_|_|_|_|_|_|_|/  
|/| | | | | | | | | | | | | | |  | 
| | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | * Disable everyone ping filter in jam channels
* Disable anti-spam in jam channels
* Disable antimalware in jam channels | 
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \  
| | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | Use getattr with a default, to protect against DM channels | 
| |/ / / / / / / / / / / / / / / |  | 
| | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | * Disable filter_invites in codejam team channels
* Fix incorrect comment
Co-authored-by: ChrisJL <[email protected]>
Co-authored-by: ChrisJL <[email protected]> | 
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \  
| | | | | | | | | | | | | | | | 
| | | | | | | | | | | | | | | | | chore: Add the codejam create command | 
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \  
| |/ / / / / / / / / / / / / / /  
|/| | | | | | | | | | | | | | | |  |