-
Notifications
You must be signed in to change notification settings - Fork 0
feat: add moderation commands #46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
thenishantsapkota
wants to merge
44
commits into
master
Choose a base branch
from
feat/6-moderation-commands
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
44 commits
Select commit
Hold shift + click to select a range
efa2bcf
feat: add decorators for helping in using moderation commands
thenishantsapkota 371fc29
feat: add time conversion function
thenishantsapkota f573d3f
feat : add some more error classes
thenishantsapkota fe1f71c
feat: add 'get' function
thenishantsapkota ab24b71
feat: add '__init__' for Moderation folder
thenishantsapkota 7b06093
feat: add helper commands to assist moderation commands in running
thenishantsapkota 9161e9e
feat: add 'timeout' command
thenishantsapkota 3ec7bb8
refactor: changed command type of timeout command
thenishantsapkota 77e4a80
refactor: remove unnecessary imports
thenishantsapkota 0261585
feat: add models for setting staff roles of the server
thenishantsapkota 5e9b544
feat: add 'case search' 'case list' and started logging moderation ac…
thenishantsapkota 4c6a46f
refactor: change role commands to config command and add a command to…
thenishantsapkota 2289c2d
feat: add check for mod logs
thenishantsapkota d37b730
refactor: remove unnecessary imports
thenishantsapkota 9a8657c
refactor: move all the time functions from 'time.py' to 'helper_funct…
thenishantsapkota f31a3fd
refactor: delete 'time.py'
thenishantsapkota 312b718
refactor: remove 'get' function from __init__
thenishantsapkota 17b9e74
refactor: move 'get' function from __init__.py to helper_functions.py
thenishantsapkota a278343
refactor: add a way to remove modlog channel
thenishantsapkota 297113f
feat: add 'delete_moderation_roles' function in assisting in deleting…
thenishantsapkota 2ac573f
refactor: remove 'config clear' command and made the roles deletable …
thenishantsapkota b960235
feat: add `kick` command
thenishantsapkota cc07724
feat: add a method for registering moderation cases
thenishantsapkota fd7eefc
refactor: change parameters of the `register_cases` function and add …
thenishantsapkota 7940230
refactor: update `register_cases` function call according to the defi…
thenishantsapkota 9cb2b14
refactor: add docstrings and make `higher_role_check` function synchr…
thenishantsapkota 6d5a3ad
refactor: add more docstrings to all the functions
thenishantsapkota 3bbcea0
refactor: move `on_error` from `peacebot.core.utils.errors` to `peace…
thenishantsapkota 41ae93e
refactor: remove unnecessary imports and unnecessary logger
thenishantsapkota 253910c
refactor: add `higher_role_check` and move `ModerationError` to `peac…
thenishantsapkota f14e088
refactor: move `PermissionsError` to `peacebot.core.utils.errors`
thenishantsapkota 3e1afc6
refactor: move `CommandError` to `peacebot.core.utils.errors`
thenishantsapkota 5132608
refactor: move `MusicError` to `peacebot.core.utils.errors`
thenishantsapkota 7e80ff4
refactor: move all the errors from all the other files to this file
thenishantsapkota b983319
feat: add ModLogs model
thenishantsapkota 600b18a
dependencies: update the project dependencies
thenishantsapkota ff1accf
refactor: remove unnecessary imports
thenishantsapkota 51ed545
feat: add `ban` command
thenishantsapkota 783f72f
refactor: make `guild`a ForeignKeyField for ModLogs and ModerationRol…
thenishantsapkota 755f33e
dependencies: bump `hikari-miru` to v0.6.3 and use commit hash for `h…
thenishantsapkota 25912ca
dependencies: use commit hash for `hikari` since only using hash for…
thenishantsapkota 27f5daf
refactor: change `avatar` and `userinfo` command to Context Menu comm…
thenishantsapkota 4d0a4c7
refactor: change from f-strings to format in the case list command
thenishantsapkota 21af4a0
dependencies: update all the dependencies to their latest version
thenishantsapkota File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1 @@ | ||
| from .config import bot_config, db_config, lavalink_config | ||
|
|
||
| __all__ = ["bot_config", "db_config"] |
Empty file.
Empty file.
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| from .bot import bot_config | ||
| from .database import db_config | ||
| from .lavalink import lavalink_config | ||
|
|
||
| __all__ = ["bot_config", "db_config", "lavalink_config"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Empty file.
10 changes: 1 addition & 9 deletions
10
peacebot/core/plugins/Miscellaneous/__init__.py
100644 → 100755
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.