Skip to content
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
wants to merge 68 commits into
base: production
Choose a base branch
from
Open

Sapphire Version 1 Completed #2

wants to merge 68 commits into from

Commits on Jul 24, 2021

  1. added initial pass on punishments table

    includes a userid, punishment end date, created date, and an optional expiration date
    
    Signed-off-by: Devin Mitchell <[email protected]>
    demitchell14 committed Jul 24, 2021
    Configuration menu
    Copy the full SHA
    e5abfe7 View commit details
    Browse the repository at this point in the history
  2. allowed endsAt to be null and userId to be a string

    Signed-off-by: Devin Mitchell <[email protected]>
    demitchell14 committed Jul 24, 2021
    Configuration menu
    Copy the full SHA
    c2a08c3 View commit details
    Browse the repository at this point in the history
  3. added PunishmentController to handle sending discord messages and upd…

    …ating the punishment database table
    
    Signed-off-by: Devin Mitchell <[email protected]>
    demitchell14 committed Jul 24, 2021
    Configuration menu
    Copy the full SHA
    0fe64fd View commit details
    Browse the repository at this point in the history
  4. added lenientRoles

    Signed-off-by: Devin Mitchell <[email protected]>
    demitchell14 committed Jul 24, 2021
    Configuration menu
    Copy the full SHA
    e62c0e3 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a68c54e View commit details
    Browse the repository at this point in the history
  6. initial synchronization pass

    Signed-off-by: Devin Mitchell <[email protected]>
    demitchell14 committed Jul 24, 2021
    Configuration menu
    Copy the full SHA
    c623719 View commit details
    Browse the repository at this point in the history
  7. added guild ID to config

    Signed-off-by: Devin Mitchell <[email protected]>
    demitchell14 committed Jul 24, 2021
    Configuration menu
    Copy the full SHA
    e99d3c1 View commit details
    Browse the repository at this point in the history
  8. punishments now take place immediately instead of relying solely on s…

    …ynchronization
    
    Signed-off-by: Devin Mitchell <[email protected]>
    demitchell14 committed Jul 24, 2021
    Configuration menu
    Copy the full SHA
    44da7c3 View commit details
    Browse the repository at this point in the history

Commits on Aug 26, 2021

  1. switched from Commando to Sapphire framework

    Signed-off-by: Devin Mitchell <[email protected]>
    demitchell14 committed Aug 26, 2021
    Configuration menu
    Copy the full SHA
    400bacf View commit details
    Browse the repository at this point in the history
  2. implemented new logger

    Signed-off-by: Devin Mitchell <[email protected]>
    demitchell14 committed Aug 26, 2021
    Configuration menu
    Copy the full SHA
    b5e94e8 View commit details
    Browse the repository at this point in the history
  3. updated logger

    Signed-off-by: Devin Mitchell <[email protected]>
    demitchell14 committed Aug 26, 2021
    Configuration menu
    Copy the full SHA
    dc07b7b View commit details
    Browse the repository at this point in the history
  4. Merge branch 'punshments' into sapphire

    # Conflicts:
    #	src/Bot.ts
    #	src/config/bot.ts
    #	src/controllers/PingController.ts
    #	src/database/database.ts
    demitchell14 committed Aug 26, 2021
    Configuration menu
    Copy the full SHA
    dc382b7 View commit details
    Browse the repository at this point in the history
  5. bugfix

    Signed-off-by: Devin Mitchell <[email protected]>
    demitchell14 committed Aug 26, 2021
    Configuration menu
    Copy the full SHA
    fe07321 View commit details
    Browse the repository at this point in the history
  6. lintfixes

    Signed-off-by: Devin Mitchell <[email protected]>
    demitchell14 committed Aug 26, 2021
    Configuration menu
    Copy the full SHA
    8c8716f View commit details
    Browse the repository at this point in the history

Commits on Sep 3, 2021

  1. upgraded to @sapphire/framework@next to utilize Discord 13

    Signed-off-by: Devin Mitchell <[email protected]>
    demitchell14 committed Sep 3, 2021
    Configuration menu
    Copy the full SHA
    37ec200 View commit details
    Browse the repository at this point in the history

Commits on Sep 9, 2021

  1. first pass on changing how punishments work.

    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]>
    demitchell14 committed Sep 9, 2021
    Configuration menu
    Copy the full SHA
    c5350fa View commit details
    Browse the repository at this point in the history
  2. added dryrun and muteRole configuration

    Signed-off-by: Devin Mitchell <[email protected]>
    demitchell14 committed Sep 9, 2021
    Configuration menu
    Copy the full SHA
    e81d3c2 View commit details
    Browse the repository at this point in the history
  3. added a clean script and attached it to the build process

    Signed-off-by: Devin Mitchell <[email protected]>
    demitchell14 committed Sep 9, 2021
    Configuration menu
    Copy the full SHA
    0e9736a View commit details
    Browse the repository at this point in the history
  4. removed standard punishments as they are redundant since we will be u…

    …sing the user type
    
    Signed-off-by: Devin Mitchell <[email protected]>
    demitchell14 committed Sep 9, 2021
    Configuration menu
    Copy the full SHA
    e28638b View commit details
    Browse the repository at this point in the history

Commits on Sep 10, 2021

  1. renamed punishments to punishment history

    Signed-off-by: Devin Mitchell <[email protected]>
    demitchell14 committed Sep 10, 2021
    Configuration menu
    Copy the full SHA
    a04679d View commit details
    Browse the repository at this point in the history
  2. added start of punishments table which will contain all types of puni…

    …shments that the bot can give out
    
    Signed-off-by: Devin Mitchell <[email protected]>
    demitchell14 committed Sep 10, 2021
    Configuration menu
    Copy the full SHA
    df2d5bd View commit details
    Browse the repository at this point in the history
  3. updated how errors are implemented

    Signed-off-by: Devin Mitchell <[email protected]>
    demitchell14 committed Sep 10, 2021
    Configuration menu
    Copy the full SHA
    6ab0f46 View commit details
    Browse the repository at this point in the history
  4. updated how errors are implemented

    Signed-off-by: Devin Mitchell <[email protected]>
    demitchell14 committed Sep 10, 2021
    Configuration menu
    Copy the full SHA
    825b0f8 View commit details
    Browse the repository at this point in the history
  5. refactored types and added a second unique index

    Signed-off-by: Devin Mitchell <[email protected]>
    demitchell14 committed Sep 10, 2021
    Configuration menu
    Copy the full SHA
    40fdb0b View commit details
    Browse the repository at this point in the history
  6. Start of command passed punishment management

    Signed-off-by: Devin Mitchell <[email protected]>
    demitchell14 committed Sep 10, 2021
    Configuration menu
    Copy the full SHA
    7f1b005 View commit details
    Browse the repository at this point in the history
  7. removed the block config

    Signed-off-by: Devin Mitchell <[email protected]>
    demitchell14 committed Sep 10, 2021
    Configuration menu
    Copy the full SHA
    2e13518 View commit details
    Browse the repository at this point in the history
  8. changed db

    Signed-off-by: Devin Mitchell <[email protected]>
    demitchell14 committed Sep 10, 2021
    Configuration menu
    Copy the full SHA
    749795d View commit details
    Browse the repository at this point in the history
  9. made minutes optional

    Signed-off-by: Devin Mitchell <[email protected]>
    demitchell14 committed Sep 10, 2021
    Configuration menu
    Copy the full SHA
    a45a04e View commit details
    Browse the repository at this point in the history
  10. changed init and changed message

    Signed-off-by: Devin Mitchell <[email protected]>
    demitchell14 committed Sep 10, 2021
    Configuration menu
    Copy the full SHA
    7bce85f View commit details
    Browse the repository at this point in the history
  11. now fetches punishments from database and added isMonitoredUser funct…

    …ion to check if the message author is a monitored user
    
    Signed-off-by: Devin Mitchell <[email protected]>
    demitchell14 committed Sep 10, 2021
    Configuration menu
    Copy the full SHA
    bd7e953 View commit details
    Browse the repository at this point in the history
  12. renamed BlockedUsers to MonitoredUsers

    changed updateLastMessage to insert or update
    
    Signed-off-by: Devin Mitchell <[email protected]>
    demitchell14 committed Sep 10, 2021
    Configuration menu
    Copy the full SHA
    2c6340f View commit details
    Browse the repository at this point in the history
  13. removed unnecessary log

    Signed-off-by: Devin Mitchell <[email protected]>
    demitchell14 committed Sep 10, 2021
    Configuration menu
    Copy the full SHA
    c6b86f7 View commit details
    Browse the repository at this point in the history
  14. isMonitoredUser is now a promise, as it fetches the user to try to ge…

    …t the most up-to-date roles
    
    Signed-off-by: Devin Mitchell <[email protected]>
    demitchell14 committed Sep 10, 2021
    Configuration menu
    Copy the full SHA
    68f5872 View commit details
    Browse the repository at this point in the history
  15. punishment commands now required administrator

    Signed-off-by: Devin Mitchell <[email protected]>
    demitchell14 committed Sep 10, 2021
    Configuration menu
    Copy the full SHA
    ccc27df View commit details
    Browse the repository at this point in the history
  16. Messages sent in both excludedChannels and notifyChannels, and comman…

    …ds no longer extend the ping window
    
    Signed-off-by: Devin Mitchell <[email protected]>
    demitchell14 committed Sep 10, 2021
    Configuration menu
    Copy the full SHA
    562b202 View commit details
    Browse the repository at this point in the history
  17. added synchronization after creating punishments

    Signed-off-by: Devin Mitchell <[email protected]>
    demitchell14 committed Sep 10, 2021
    Configuration menu
    Copy the full SHA
    0463ae7 View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2021

  1. fetch not required

    Signed-off-by: Devin Mitchell <[email protected]>
    demitchell14 committed Sep 11, 2021
    Configuration menu
    Copy the full SHA
    2da4477 View commit details
    Browse the repository at this point in the history
  2. added moderatorRoles to config

    Signed-off-by: Devin Mitchell <[email protected]>
    demitchell14 committed Sep 11, 2021
    Configuration menu
    Copy the full SHA
    7ef76fa View commit details
    Browse the repository at this point in the history
  3. added sentByAuthorizedUser function to compare roles against moderati…

    …onRoles
    
    Signed-off-by: Devin Mitchell <[email protected]>
    demitchell14 committed Sep 11, 2021
    Configuration menu
    Copy the full SHA
    334d266 View commit details
    Browse the repository at this point in the history
  4. will not execute for authorized users (moderators)

    Signed-off-by: Devin Mitchell <[email protected]>
    demitchell14 committed Sep 11, 2021
    Configuration menu
    Copy the full SHA
    a97ea05 View commit details
    Browse the repository at this point in the history
  5. refactored isMonitoredUser(message) to isMonitoredMember(author) for …

    …more generic use
    
    Signed-off-by: Devin Mitchell <[email protected]>
    demitchell14 committed Sep 11, 2021
    Configuration menu
    Copy the full SHA
    b7e7799 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    8bd813d View commit details
    Browse the repository at this point in the history
  7. removed unused listener

    Signed-off-by: Devin Mitchell <[email protected]>
    demitchell14 committed Sep 11, 2021
    Configuration menu
    Copy the full SHA
    a8e1c64 View commit details
    Browse the repository at this point in the history
  8. added parseUserOrRole function to parse a user or role into a discord…

    … mention
    
    fixed minutesToReadable
    
    Signed-off-by: Devin Mitchell <[email protected]>
    demitchell14 committed Sep 11, 2021
    Configuration menu
    Copy the full SHA
    fa585c0 View commit details
    Browse the repository at this point in the history
  9. removed null type from results

    Signed-off-by: Devin Mitchell <[email protected]>
    demitchell14 committed Sep 11, 2021
    Configuration menu
    Copy the full SHA
    0b28fbe View commit details
    Browse the repository at this point in the history
  10. added index to parse

    Signed-off-by: Devin Mitchell <[email protected]>
    demitchell14 committed Sep 11, 2021
    Configuration menu
    Copy the full SHA
    56ecc41 View commit details
    Browse the repository at this point in the history
  11. removed types and added getPunishmment function

    Signed-off-by: Devin Mitchell <[email protected]>
    demitchell14 committed Sep 11, 2021
    Configuration menu
    Copy the full SHA
    0853be8 View commit details
    Browse the repository at this point in the history
  12. import update

    Signed-off-by: Devin Mitchell <[email protected]>
    demitchell14 committed Sep 11, 2021
    Configuration menu
    Copy the full SHA
    b336f03 View commit details
    Browse the repository at this point in the history
  13. added help, for, and list commands

    Signed-off-by: Devin Mitchell <[email protected]>
    demitchell14 committed Sep 11, 2021
    Configuration menu
    Copy the full SHA
    83ab9c3 View commit details
    Browse the repository at this point in the history
  14. removed intent

    Signed-off-by: Devin Mitchell <[email protected]>
    demitchell14 committed Sep 11, 2021
    Configuration menu
    Copy the full SHA
    b80b44d View commit details
    Browse the repository at this point in the history
  15. added ability to remove a punishment

    Signed-off-by: Devin Mitchell <[email protected]>
    demitchell14 committed Sep 11, 2021
    Configuration menu
    Copy the full SHA
    7c72506 View commit details
    Browse the repository at this point in the history
  16. refactored getRoleOrUser out

    Signed-off-by: Devin Mitchell <[email protected]>
    demitchell14 committed Sep 11, 2021
    Configuration menu
    Copy the full SHA
    90d3ff8 View commit details
    Browse the repository at this point in the history
  17. added remove command

    Signed-off-by: Devin Mitchell <[email protected]>
    demitchell14 committed Sep 11, 2021
    Configuration menu
    Copy the full SHA
    cb0aa3e View commit details
    Browse the repository at this point in the history
  18. punishments only sync when changed

    Signed-off-by: Devin Mitchell <[email protected]>
    demitchell14 committed Sep 11, 2021
    Configuration menu
    Copy the full SHA
    18d9a30 View commit details
    Browse the repository at this point in the history
  19. added order by

    Signed-off-by: Devin Mitchell <[email protected]>
    demitchell14 committed Sep 11, 2021
    Configuration menu
    Copy the full SHA
    6ba6d66 View commit details
    Browse the repository at this point in the history
  20. bugfix

    Signed-off-by: Devin Mitchell <[email protected]>
    demitchell14 committed Sep 11, 2021
    Configuration menu
    Copy the full SHA
    c7e2060 View commit details
    Browse the repository at this point in the history
  21. prettier

    Signed-off-by: Devin Mitchell <[email protected]>
    demitchell14 committed Sep 11, 2021
    Configuration menu
    Copy the full SHA
    3a309e4 View commit details
    Browse the repository at this point in the history
  22. eslint fixes

    Signed-off-by: Devin Mitchell <[email protected]>
    demitchell14 committed Sep 11, 2021
    Configuration menu
    Copy the full SHA
    1b32d5b View commit details
    Browse the repository at this point in the history
  23. added kick functionality

    Signed-off-by: Devin Mitchell <[email protected]>
    demitchell14 committed Sep 11, 2021
    Configuration menu
    Copy the full SHA
    79fe0a1 View commit details
    Browse the repository at this point in the history

Commits on Oct 1, 2021

  1. added documentation

    Signed-off-by: Devin <[email protected]>
    demitchell14 committed Oct 1, 2021
    Configuration menu
    Copy the full SHA
    3f064c2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3471c59 View commit details
    Browse the repository at this point in the history
  3. prettier lint fix

    Signed-off-by: Devin <[email protected]>
    demitchell14 committed Oct 1, 2021
    Configuration menu
    Copy the full SHA
    515b584 View commit details
    Browse the repository at this point in the history
  4. reimplemented notification removal

    Signed-off-by: Devin <[email protected]>
    demitchell14 committed Oct 1, 2021
    Configuration menu
    Copy the full SHA
    1106d06 View commit details
    Browse the repository at this point in the history
  5. updated docs

    Signed-off-by: Devin <[email protected]>
    demitchell14 committed Oct 1, 2021
    Configuration menu
    Copy the full SHA
    7f4470e View commit details
    Browse the repository at this point in the history
  6. added esling workflow

    Signed-off-by: Devin <[email protected]>
    demitchell14 committed Oct 1, 2021
    Configuration menu
    Copy the full SHA
    74fb47c View commit details
    Browse the repository at this point in the history
  7. removed dummy ping command

    Signed-off-by: Devin <[email protected]>
    demitchell14 committed Oct 1, 2021
    Configuration menu
    Copy the full SHA
    ae7d222 View commit details
    Browse the repository at this point in the history
  8. Update commands.md

    demitchell14 authored Oct 1, 2021
    Configuration menu
    Copy the full SHA
    2a3019c View commit details
    Browse the repository at this point in the history
  9. lintfix

    Signed-off-by: Devin <[email protected]>
    demitchell14 committed Oct 1, 2021
    Configuration menu
    Copy the full SHA
    3235714 View commit details
    Browse the repository at this point in the history