| Commit message (Collapse) | Author | Age | Lines |
| |
|
|
|
|
|
| |
Changes all usages of bot.constant to use dotted path to remove
confusion and namespace collision.
Signed-off-by: Hassan Abouelela <[email protected]>
|
| |
|
|
|
|
|
| |
Modifies the lock on the silence command, in order to choose between ctx
and channel arg based on input.
Signed-off-by: Hassan Abouelela <[email protected]>
|
| |
|
|
|
|
|
| |
Restructures some code to make it more understandable and reduce
duplication.
Signed-off-by: Hassan Abouelela <[email protected]>
|
| |
|
|
|
|
| |
Refactors the send message utility function to make it more legible and
reduce unnecessary calls.
Co-authored-by: Mark <[email protected]>
|
| |
|
|
|
|
|
| |
Reduces redundant calls to isinstance by saving the result where
applicable.
Signed-off-by: Hassan Abouelela <[email protected]>
|
| |
|
|
|
|
| |
Replaces a repeated hardcoded message with a dynamically built one.
Signed-off-by: Hassan Abouelela <[email protected]>
|
| |
|
|
|
|
|
|
| |
During unsilencing, if the previous channel overwrites are None, the
channel should default to None for all relevant permissions. Adds the
connect permission as it was missing.
Signed-off-by: Hassan Abouelela <[email protected]>
|
| |
|
|
| |
Signed-off-by: Hassan Abouelela <[email protected]>
|
| |
|
|
|
|
| |
Moves the call to voice chat sync from _unsilence_wrapper to _unsilence.
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]>
|
| |
|
|
|
|
|
| |
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]>
|
| |\ |
|
| | |\
| | |
| | | |
Modify `!superstar` to use `apply_infraction`.
|
| | | | |
|
| | | |\
| | |/
| |/| |
|
| | |\ \
| | | |
| | | | |
Updated available help channel embed
|
| | | |\ \
| | |/ /
| |/| | |
|
| | |\ \ \
| | | | |
| | | | | |
Include Unicode emojis to emojis filter
|
| | | |\ \ \
| | |/ / /
| |/| | | |
|
| | | | | | |
|
| | |\ \ \ \
| | | | | |
| | | | | | |
Fix the deploy stage of our build pipeline
|
| | |/ / / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
I've fixed the deploy stage of our build pipeline, as it got mixed in
with the old workflow file due to a merge conflict. The deploy stage is
currently split into a separate workflow; theoretically, this allows us
to trigger a redeploy from GitHub, without having to build the container
image again.
Signed-off-by: Sebastiaan Zeeff <[email protected]>
|
| | |\ \ \ \ |
|
| | | |\ \ \ \
| | |/ / / /
| |/| | | | |
|
| | |\ \ \ \ \
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
python-discord/sebastiaan/backend/improve-actions-workflow
Ensure flake8 actually lints pull requests
|
| | | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
It's better to document these steps.
Signed-off-by: Sebastiaan Zeeff <[email protected]>
|
| | | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Signed-off-by: Sebastiaan Zeeff <[email protected]>
|
| | | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Signed-off-by: Sebastiaan Zeeff <[email protected]>
|
| | | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Unfortunately, our old setup did not actually lint the PR, as it was
running in the context of the target repository. To sidestep the issue
of using `pull_request_target` altogether, I've now changed our run of
flake8 to using it directly and having it output its errors in teh
format of Workflow Commands.
This means that our flake8 output will not be translated automatically
in annotations for the run.
In addition, I've split up the workflow into two separate files: one for
linting & testing and one for building (& deploying).
Signed-off-by: Sebastiaan Zeeff <[email protected]>
|
| | |/ / / / /
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
We're in the process of migrating snekbox to the GitHub Container
Repository, which will replace DockerHub. I've changed docker-compose to
reflect that change.
Signed-off-by: Sebastiaan Zeeff <[email protected]>
|
| | |\ \ \ \ \ |
|
| | | |\ \ \ \ \
| | |/ / / / /
| |/| | | | | |
|
| | | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
It was causing an error if a DSN was not configured. It also feels wrong
and confusing to attempt to make a connection just upon import.
|
| | | | | | | | |
|