|  | Commit message (Collapse) | Author | Age | Lines | 
|---|
| ... |  | 
| | | | | | | | | | | | | 
| | | | | | | | | | | | 
| | | | | | | | | | | | 
| | | | | | | | | | | | | 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]> | 
| | | | |\ \ \ \ \ \ \ \ \ |  | 
| | | | | | | | | | | | | | 
| | | | | | | | | | | | | 
| | | | | | | | | | | | | 
| | | | | | | | | | | | | 
| | | | | | | | | | | | | 
| | | | | | | | | | | | | 
| | | | | | | | | | | | | 
| | | | | | | | | | | | | | 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]> | 
| | | | | | | | | | | | | | 
| | | | | | | | | | | | | 
| | | | | | | | | | | | | 
| | | | | | | | | | | | | 
| | | | | | | | | | | | | 
| | | | | | | | | | | | | 
| | | | | | | | | | | | | | Fixes a bug where calling help with an invalid command would crash out
during fuzzy matching.
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]> | 
| | | | | | | | | | | | | |  | 
| | | | | | | | | | | | | |  | 
| | | | | | | | | | | | | |  | 
| | | | | | | | | | | | | 
| | | | | | | | | | | | 
| | | | | | | | | | | | 
| | | | | | | | | | | | | 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. | 
| | |/ / / / / / / / / /  
|/| | | | | | | | | | |  | 
| |\ \ \ \ \ \ \ \ \ \ \ |  | 
| | |/ / / / / / / / / /  
| | | | | | | | | | |   
| | | | | | | | | | |   
| | | | | | | | | | |   
| | | | | | | | | | |   
| | | | | | | | | | |   
| | | | | | | | | | | | Adds a portion to the testing README explaining how and when to run an
individual test file when working with tests. Additionally adds a table
of contents as the document has become quite long.
Signed-off-by: Hassan Abouelela <[email protected]> | 
| | |\ \ \ \ \ \ \ \ \ \  
| | | | | | | | | | | | 
| | | | | | | | | | | | 
| | | | | | | | | | | | 
| | | | | | | | | | | | 
| | | | | | | | | | | | 
| | | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
# Conflicts:
#	poetry.lock | 
| | | | | | | | | | | | | |  | 
| | | | | | | | | | | | | |  | 
| | | | | | | | | | | | | |  | 
| | | | | | | | | | | | | |  | 
| | | | |_|_|_|_|_|_|_|/  
| | |/| | | | | | | | |  | 
| | | | | | | | | | | | 
| | | | | | | | | | | 
| | | | | | | | | | | 
| | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]> | 
| | | | | | | | | | | | 
| | | | | | | | | | | 
| | | | | | | | | | | 
| | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]> | 
| | | | | | | | | | | | 
| | | | | | | | | | | 
| | | | | | | | | | | 
| | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]> | 
| | |/ / / / / / / / /  
| | | | | | | | | |   
| | | | | | | | | |   
| | | | | | | | | |   
| | | | | | | | | |   
| | | | | | | | | |   
| | | | | | | | | |   
| | | | | | | | | | | Switches the test runner from unittest to pytest, to allow the usage of
plugins such as xdist. This commit also adds pytest-cov purely as a
generator for .coverage files.
Signed-off-by: Hassan Abouelela <[email protected]> | 
| |/ / / / / / / / / |  | 
| | | | | | | | | | 
| | | | | | | | | 
| | | | | | | | | 
| | | | | | | | | 
| | | | | | | | | 
| | | | | | | | | 
| | | | | | | | | | Updates the Dockerfile, pre-commit, CI, and documentation to reflect the
 new dependency manager. Dockerfile is also updated to 3.9.
Signed-off-by: Hassan Abouelela <[email protected]> | 
| | | | | | | | | | |  | 
| | |_|_|_|_|_|_|/  
|/| | | | | | | |  | 
| | | | | | | | | 
| | | | | | | | 
| | | | | | | | 
| | | | | | | | 
| | | | | | | | | BadUnionArgument sends command help after:
https://github.com/python-discord/bot/pull/1434 | 
| | | | | | | | | 
| | | | | | | | 
| | | | | | | | 
| | | | | | | | 
| | | | | | | | | This was removed in the branding manager rewrite:
https://github.com/python-discord/bot/pull/1463/ | 
| |\ \ \ \ \ \ \ \ |  | 
| | |\ \ \ \ \ \ \ \  
| | | |_|_|_|_|_|/  
| | |/| | | | | | |  | 
| | | | | | | | | | 
| | | | | | | | | 
| | | | | | | | | | The `tests/README.md` file still referenced our old custom `AsyncMock` that has been removed in favour of the standard library one that has been introduced in 3.8. This commit fixes this by updating the section. | 
| | | | | | | | | | 
| | | | | | | | | 
| | | | | | | | | 
| | | | | | | | | | Co_authored-by: Numerlor <[email protected]> | 
| | |/ / / / / / / |  | 
| | |\ \ \ \ \ \ \  
| | | |_|_|_|_|/  
| | |/| | | | | |  | 
| | | | | | | | | |  | 
| | | | | | | | | |  | 
| | | | | | | | | 
| | | | | | | | 
| | | | | | | | 
| | | | | | | | | Accounts for no redirects on extensions that are not `.py`. | 
| | |\| | | | | | |  |