Conversation
includes a userid, punishment end date, created date, and an optional expiration date Signed-off-by: Devin Mitchell <demitchell14@gmail.com>
Signed-off-by: Devin Mitchell <demitchell14@gmail.com>
…ating the punishment database table Signed-off-by: Devin Mitchell <demitchell14@gmail.com>
Signed-off-by: Devin Mitchell <demitchell14@gmail.com>
Signed-off-by: Devin Mitchell <demitchell14@gmail.com>
Signed-off-by: Devin Mitchell <demitchell14@gmail.com>
Signed-off-by: Devin Mitchell <demitchell14@gmail.com>
…ynchronization Signed-off-by: Devin Mitchell <demitchell14@gmail.com>
Signed-off-by: Devin Mitchell <16367284+demitchell14@users.noreply.github.com>
Signed-off-by: Devin Mitchell <16367284+demitchell14@users.noreply.github.com>
Signed-off-by: Devin Mitchell <16367284+demitchell14@users.noreply.github.com>
# Conflicts: # src/Bot.ts # src/config/bot.ts # src/controllers/PingController.ts # src/database/database.ts
Signed-off-by: Devin Mitchell <16367284+demitchell14@users.noreply.github.com>
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 <16367284+demitchell14@users.noreply.github.com>
Signed-off-by: Devin Mitchell <16367284+demitchell14@users.noreply.github.com>
Signed-off-by: Devin Mitchell <16367284+demitchell14@users.noreply.github.com>
…sing the user type Signed-off-by: Devin Mitchell <16367284+demitchell14@users.noreply.github.com>
Signed-off-by: Devin Mitchell <16367284+demitchell14@users.noreply.github.com>
…shments that the bot can give out Signed-off-by: Devin Mitchell <16367284+demitchell14@users.noreply.github.com>
Signed-off-by: Devin Mitchell <16367284+demitchell14@users.noreply.github.com>
Signed-off-by: Devin Mitchell <16367284+demitchell14@users.noreply.github.com>
Signed-off-by: Devin Mitchell <16367284+demitchell14@users.noreply.github.com>
Signed-off-by: Devin Mitchell <16367284+demitchell14@users.noreply.github.com>
Signed-off-by: Devin Mitchell <16367284+demitchell14@users.noreply.github.com>
Signed-off-by: Devin Mitchell <16367284+demitchell14@users.noreply.github.com>
Signed-off-by: Devin Mitchell <16367284+demitchell14@users.noreply.github.com>
Signed-off-by: Devin Mitchell <16367284+demitchell14@users.noreply.github.com>
…ion to check if the message author is a monitored user Signed-off-by: Devin Mitchell <16367284+demitchell14@users.noreply.github.com>
…more generic use Signed-off-by: Devin Mitchell <16367284+demitchell14@users.noreply.github.com>
Signed-off-by: Devin Mitchell <16367284+demitchell14@users.noreply.github.com>
Signed-off-by: Devin Mitchell <16367284+demitchell14@users.noreply.github.com>
… mention fixed minutesToReadable Signed-off-by: Devin Mitchell <16367284+demitchell14@users.noreply.github.com>
Signed-off-by: Devin Mitchell <16367284+demitchell14@users.noreply.github.com>
Signed-off-by: Devin Mitchell <16367284+demitchell14@users.noreply.github.com>
Signed-off-by: Devin Mitchell <16367284+demitchell14@users.noreply.github.com>
Signed-off-by: Devin Mitchell <16367284+demitchell14@users.noreply.github.com>
Signed-off-by: Devin Mitchell <16367284+demitchell14@users.noreply.github.com>
Signed-off-by: Devin Mitchell <16367284+demitchell14@users.noreply.github.com>
Signed-off-by: Devin Mitchell <16367284+demitchell14@users.noreply.github.com>
Signed-off-by: Devin Mitchell <16367284+demitchell14@users.noreply.github.com>
Signed-off-by: Devin Mitchell <16367284+demitchell14@users.noreply.github.com>
Signed-off-by: Devin Mitchell <16367284+demitchell14@users.noreply.github.com>
Signed-off-by: Devin Mitchell <16367284+demitchell14@users.noreply.github.com>
Signed-off-by: Devin Mitchell <16367284+demitchell14@users.noreply.github.com>
Signed-off-by: Devin Mitchell <16367284+demitchell14@users.noreply.github.com>
Signed-off-by: Devin <devin@mtechnologies.net>
Signed-off-by: Devin <devin@mtechnologies.net>
Signed-off-by: Devin <devin@mtechnologies.net>
Signed-off-by: Devin <devin@mtechnologies.net>
Signed-off-by: Devin <devin@mtechnologies.net>
Signed-off-by: Devin <devin@mtechnologies.net>
Signed-off-by: Devin <devin@mtechnologies.net>
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
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.
clearwhich will immediately stop allowing pings.moderatorRolesa.
punishments helpshows commands that you can useb.
punishments listshows all punishments that have been created. Each user or role has its own embed with a list of punishmentsc.
punishments createwhich allows you to create a punishment. Entering the shown command will show you the full command contextd.
punishments removewhich 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,excludedChannelsare not effected,d. In order to use the
mutepunishment, amuteRolemust 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.notifyChannelsandexcludedChannelsa few things happen.a. A message is sent out to
notifyChannelsthat pingsnotifyRolestelling 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
notifyTimeouttime 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