Commit Graph

24 Commits

Author SHA1 Message Date
Vegard Berg 11ee60cd62
Fixed another issue w/ loglevels, and one await in infractions. 2022-08-29 02:50:55 +02:00
Vegard Berg 9c8be82481
Fixed an error if warn level was not set 2022-08-29 01:02:09 +02:00
Vegard Berg d7a68d27f6
Updated README.md
Fixed run command.
Added info about other environment variables that can be set.
2022-08-14 00:14:08 +02:00
Vegard Berg 3ca4aa1131
Updated naff to 1.7.1 2022-08-14 00:02:08 +02:00
Vegard Berg 506230be16 Added run script. 2022-08-11 01:39:39 +02:00
Vegard Berg 285c617871 Added comments for readability 2022-08-11 01:39:15 +02:00
Vegard Berg f1987d2788 Added bot messages. Updated polls and self-roles.
Added bot messages, intended for moderators to be able to post as the bot.
These messages are also editable through a context menu.
Intended for rules/info messages etc.

Polls:
Added some error handling, as the bot only supports Unicode emojis.

Self-roles:
Edited the name of the context menu for updating a role-group message.
2022-08-06 02:01:29 +02:00
Vegard Berg fed475d8c7 Added polls command 2022-08-05 13:19:08 +02:00
Vegard Berg 64c138110c Added ability to regenerate captchas. 2022-08-04 14:34:45 +02:00
Vegard Berg 246e011549 Fixed "approve" command and context menu name conflict. 2022-08-04 13:46:07 +02:00
Vegard Berg 2cc865100d Stop pylint whining about unexpected keyword argument. 2022-08-04 04:34:19 +02:00
Vegard Berg 847d5c8c89 Check mark reactions in welcome channel approve user.
A check mark reaction emoji can be used to approve a user, if it is done in the Join/Leave message channel.
It requires the one reacting to have the "Manage Roles" permission.
2022-08-04 04:15:28 +02:00
Vegard Berg 5cf3cdbb08 Added Gatekeep features.
Added Gatekeep, a system where users require approval to fully join the server.
Currently, "manual" and "captcha" modes are available.
Manual mode requires someone to use the "/approve" command, or the "approve" context menu on a user to approve them.
Captcha mode allows the former, but lets the user complete a captcha in order to join.
The captcha is provided as both an image and as text.
2022-08-04 03:52:53 +02:00
Vegard Berg 40b347c875 Added updating role group messages and exclusive roles
Added a context menu for messages for updating a role group message.
Ideally this would be done automatically, but this works fine for now.
Alternatively, this may be ideal if one doesn't want changes to immediately propagate.

Added the option for some role groups to have their roles be mutually exclusive.
I.e. one would only be able to pick one role from the group.
2022-08-04 00:56:46 +02:00
Vegard Berg 7e2f113c52 Addes self-role groups. 2022-08-03 19:48:01 +02:00
Vegard Berg 09b87df3bc Added admin settings, join/leave messages. 2022-07-25 02:32:07 +02:00
Vegard Berg c02ff3f8f8 user-infractions shows total severity.
Command user-infractions now shows the total severity/weight and number of infractions.
2022-07-23 01:10:45 +02:00
Vegard Berg a9920e44d1 Added info for running the bot. 2022-07-22 23:55:36 +02:00
Vegard Berg 8f1e003d7b Updated README to include info on commands. 2022-07-22 23:52:51 +02:00
Vegard Berg 38d2972021 Added: self-roles, Modified: infractions
Added self-roles with options to add or remove one's own roles.
Added moderator commands for managing self-roles.

When a warning is issued, it should now show up in an admin channel, if there is one.
2022-07-22 02:27:17 +02:00
Vegard Berg 281c60a738 Fixed Pylint to work w/ Poetry 2022-07-21 21:30:15 +02:00
Vegard Berg 2357c835a6 Made Pylint happy. 2022-07-21 21:27:47 +02:00
Vegard Berg 6e6af4b508
Create pylint.yml 2022-07-21 20:53:46 +02:00
Vegard Berg e3a3fa0f6d Initial commit. DB models, warn/infraction commands, quote command 2022-07-21 20:50:23 +02:00