-
Notifications
You must be signed in to change notification settings - Fork 0
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
Sapphire Version 1 Completed #2
Open
demitchell14
wants to merge
68
commits into
production
Choose a base branch
from
sapphire
base: production
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
Conversation
This file contains 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
includes a userid, punishment end date, created date, and an optional expiration date Signed-off-by: Devin Mitchell <[email protected]>
Signed-off-by: Devin Mitchell <[email protected]>
…ating the punishment database table Signed-off-by: Devin Mitchell <[email protected]>
Signed-off-by: Devin Mitchell <[email protected]>
Signed-off-by: Devin Mitchell <[email protected]>
Signed-off-by: Devin Mitchell <[email protected]>
Signed-off-by: Devin Mitchell <[email protected]>
…ynchronization Signed-off-by: Devin Mitchell <[email protected]>
Signed-off-by: Devin Mitchell <[email protected]>
Signed-off-by: Devin Mitchell <[email protected]>
Signed-off-by: Devin Mitchell <[email protected]>
# Conflicts: # src/Bot.ts # src/config/bot.ts # src/controllers/PingController.ts # src/database/database.ts
Signed-off-by: Devin Mitchell <[email protected]>
Signed-off-by: Devin Mitchell <[email protected]>
Signed-off-by: Devin Mitchell <[email protected]>
punishments will use a punishment table now that includes type (ban, mute, kick), length of punishment, and target type (role or user currently are the options) Signed-off-by: Devin Mitchell <[email protected]>
Signed-off-by: Devin Mitchell <[email protected]>
Signed-off-by: Devin Mitchell <[email protected]>
…sing the user type Signed-off-by: Devin Mitchell <[email protected]>
Signed-off-by: Devin Mitchell <[email protected]>
…shments that the bot can give out Signed-off-by: Devin Mitchell <[email protected]>
Signed-off-by: Devin Mitchell <[email protected]>
Signed-off-by: Devin Mitchell <[email protected]>
Signed-off-by: Devin Mitchell <[email protected]>
Signed-off-by: Devin Mitchell <[email protected]>
Signed-off-by: Devin Mitchell <[email protected]>
Signed-off-by: Devin Mitchell <[email protected]>
Signed-off-by: Devin Mitchell <[email protected]>
Signed-off-by: Devin Mitchell <[email protected]>
…ion to check if the message author is a monitored user Signed-off-by: Devin Mitchell <[email protected]>
…more generic use Signed-off-by: Devin Mitchell <[email protected]>
Signed-off-by: Devin Mitchell <[email protected]>
Signed-off-by: Devin Mitchell <[email protected]>
… mention fixed minutesToReadable Signed-off-by: Devin Mitchell <[email protected]>
Signed-off-by: Devin Mitchell <[email protected]>
Signed-off-by: Devin Mitchell <[email protected]>
Signed-off-by: Devin Mitchell <[email protected]>
Signed-off-by: Devin Mitchell <[email protected]>
Signed-off-by: Devin Mitchell <[email protected]>
Signed-off-by: Devin Mitchell <[email protected]>
Signed-off-by: Devin Mitchell <[email protected]>
Signed-off-by: Devin Mitchell <[email protected]>
Signed-off-by: Devin Mitchell <[email protected]>
Signed-off-by: Devin Mitchell <[email protected]>
Signed-off-by: Devin Mitchell <[email protected]>
Signed-off-by: Devin Mitchell <[email protected]>
Signed-off-by: Devin Mitchell <[email protected]>
Signed-off-by: Devin Mitchell <[email protected]>
Signed-off-by: Devin Mitchell <[email protected]>
Signed-off-by: Devin <[email protected]>
Signed-off-by: Devin <[email protected]>
Signed-off-by: Devin <[email protected]>
Signed-off-by: Devin <[email protected]>
Signed-off-by: Devin <[email protected]>
Signed-off-by: Devin <[email protected]>
Signed-off-by: Devin <[email protected]>
Signed-off-by: Devin <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Features as of cb0aa3e (Commits on Sep 10, 2021)
a.
extend [time in minutes]
which will create a timeframe that users will be able to ping. One catch currently is that if the user speaks after running the command, the time will reset to the default time that people have to ping the user.b.
clear
which will immediately stop allowing pings.moderatorRoles
a.
punishments help
shows commands that you can useb.
punishments list
shows all punishments that have been created. Each user or role has its own embed with a list of punishmentsc.
punishments create
which allows you to create a punishment. Entering the shown command will show you the full command contextd.
punishments remove
which allows you to remove a punishment. Entering the shown command will show you the full command contexta. Punishments are created by staff, with increasing levels of punishment.
b. The punishment the user receives is based on how many punishments they've received prior and how many punishments have been created. This means if there are 5 punishments created, and the user has been punished once, they will receive the second priority punishment.
c.
moderatorRoles
,notifyChannels
,excludedChannels
are not effected,d. In order to use the
mute
punishment, amuteRole
must be configured.e. If the user that performed a ping has
lenientRoles
, they will receive a different set of punishments. If no lenient punishments are created, they will still get the standard punishments.notifyChannels
andexcludedChannels
a few things happen.a. A message is sent out to
notifyChannels
that pingsnotifyRoles
telling them that the user is around. It also gives a link to their first post.b. The bot stores the timestamp of the message along with
notifyTimeout
time in minutes in the database. This is the time that ping-protected user will no longer be able to be pinged.As of now, I still need to do clean up.. but I feel like we could probably do some testing.added comments, did a little bit of cleanup, and added command documentation MD