75 Commits

Author SHA1 Message Date
Caleb Johnson
0dafcfa083 [Mod] Allow external custom case creation (#1391) 2018-03-17 19:33:06 +01:00
Twentysix
6acc43c8ff
[Mod] [p]filter: Performance improvements (#1233) 2018-01-05 16:46:33 +01:00
Twentysix
9f290dbdc7 [Mod] No wipe of messages on [p]hackban 2017-06-22 00:45:21 +02:00
Twentysix
8887d03543 [Mod] Check for filtered words on message edit
As proposed in #767
2017-05-20 17:17:02 +02:00
Twentysix
fdd2805e8f [Mod] Ignore command's message autodelete errors 2017-05-18 19:23:57 +02:00
Twentysix
919bb01128 [Mod] Bots are ignored by the filter
Fixes #735
2017-04-29 00:24:15 +02:00
Twentysix
6d860b8584 [Core, Mod] Moved core functions to owner cog (#701)
Moved blacklist / whitelist functions to owner cog
Moved [p]modset adminrole / modrole to [p]set command group
Check mod/admin users against blacklist / whitelist:
Users with (server or global) admin or mod role used to be able to skip the whitelist / blacklist checks. This doesn't really make sense from a design pov since these are global checks and the commands are owner only.
[p]set adminrole/modrole: check that the role actually exists before adding it
Added [p]blacklist/whitelist list, to show the members of each list
2017-04-13 22:36:15 +02:00
Twentysix
2e5023be5f [Mod] Added [p]hackban 2017-04-13 02:22:16 +02:00
Twentysix
25dfefce4d [Mod] [p]reason: Better error handling for case messages
Fixes #665
2017-03-24 03:03:14 +01:00
Twentysix
7c192b3668 [Mod] Added optional role hierarchy check
Toggleable with [p]modset hierarchy
This enables a role hierarchy check before all moderation actions. If the mod doesn't have a role superior to the user's top role the action will be denied.
Server owner and bot owner are exempt from the check.
2017-03-15 22:54:27 +01:00
Twentysix
7ef878864e [Mod] Added unban event to mod-log
Also implemented an interface to deal with the double event triggering issue in an easier way
2017-03-10 17:40:49 +01:00
Twentysix
361d45e724 [Mod] Fixed some case toggles not working properly
Check is now done at function level
2017-03-10 05:51:37 +01:00
Twentysix
31426ca7c6 [Mod] Prevent users from expelling themselves 2017-03-09 02:16:18 +01:00
Twentysix
a0aa69e083 [Mod] Show name and discrim in mod-log 2017-03-05 17:47:08 +01:00
Twentysix
c25c5629ea [Mod] Paginate [p]filter output 2017-03-03 14:53:23 +01:00
Caleb Johnson
343fc80406 [Mod] Enhanced mod-log (#491)
Case management:
    - Centralize formatting code
    - Store raw action type
    - Centralize pretty-print (emoji) representation of actions
    - Store creation and update timestamps
    - Allow edits from admin or bot owner
    - Enable or disable case creation on a per-action basis
    - Preliminary support for action durations
Mute:
    - Add case creation (on by default for server, not channel)
    - Show channel member was muted in in modlog entry
2017-02-22 19:39:52 +01:00
Twentysix
14dbff6dd4 [Mod] Ignore embeds in repetition filter
Fixes #590
2017-01-25 23:44:09 +01:00
Kowlin
abad4b311e Consume rest for [p]modset modrole/adminrole (#551) 2016-12-30 15:14:43 +01:00
Will
8593c08f77 [Mod] Bots can delete own messages w/ [p]cleanup user (#461)
Bulk delete endpoint needs `manage_messages`
2016-12-18 02:34:12 +01:00
Caleb Johnson
1c70185a53 [mod] Fix checks on mute subcommands (#525)
Security fix
2016-12-12 01:26:09 -05:00
Twentysix
27bdce7f32 [Core] CLI flags, env vars login, revamped setup, in. selfbot support, etc (#513)
Startup flags: can be started and configured without ever doing the interactive setup
Changed default settings format so that all unset values are None
Removed new cogs prompt
Removed `LOGIN_TYPE` from settings.json. It now defaults to token and fallbacks to email/password
Smarter initial setup: only asks for the settings that are actually missing
For the first installation all default cogs are loaded
Startup flag that allows settings to be memory-only
Initial selfbot support
Only reset login credentials (on confirmation) instead of deleting the whole file in case of login failure
Revamped main screen
Made sure that nothing blows up when you run Red on Windows without `chcp 65001`
Possibility of setting credentials in the environment variables `RED_TOKEN` / `RED_EMAIL` `RED_PASSWORD`. They will take priority over the configuration stored on disk.
2016-12-11 00:16:20 +01:00
Twentysix
c6fcdd3449 [Mod] Handle DM commands in on_command 2016-12-01 16:20:29 +01:00
Caleb Johnson
5ae98a046e [Mod] Removed pointless .keys() call for better performances (#499) 2016-11-29 21:21:13 +01:00
Will
c34bf36dee [Mod] Added [p]modset deletedelay (#445)
Deletes issued command after X seconds
2016-11-29 02:40:40 +01:00
Caleb Johnson
dd9fc4f7c2 [Mod] Include trigger message in cleanup self for selfbots (#468) 2016-11-18 23:28:12 +01:00
Twentysix
faa672b78f Removed examples in command group 2016-11-14 15:06:15 +01:00
Caleb Johnson
5a7da3540e [mod] Add cleanup bot command, pep8 2016-11-13 20:53:48 -06:00
Caleb Johnson
dfc4c833f5 [mod] Add cleanup self command, no delete delay 2016-11-13 20:53:37 -06:00
Twentysix
13d8da7e09 [Mod] Added an user muting system
Based on user channel overwrites to avoid role management complications. Retains previous send_message permissions (None/True) when the user is unmuted and respects current overwrites.
Supports channel and server wide muting.
2016-11-07 02:10:54 +01:00
Twentysix
d9c4bfa15f [Mod] Fixed on_message check
Terrible mistake
2016-11-06 14:06:10 +01:00
Twentysix
324a2d2156 [Mod] Additional check in on_message, fixed typos
Fixes #433
2016-11-02 22:38:20 +01:00
Twentysix
37ad0bcb73 [Mod] Fix single message deletion, pt II
...
2016-10-25 02:36:30 +02:00
Twentysix
15db945190 [Mod] Fix single message deletion 2016-10-25 02:27:51 +02:00
Twentysix
ca7cb9c92f [Mod] Removed superfluous .format
Fixes #420
2016-10-23 01:51:08 +02:00
Twentysix
dbc7f04d25 [Mod] Default [p]reason to last case assigned if case # is not specified 2016-10-17 05:14:17 +02:00
Twentysix
a7200b0e44 [Mod] Hotfix for wrongful deletion of messages /w attachments 2016-10-15 19:22:41 +02:00
Twentysix
a29ed0c381 [Mod] Added docstring for [p]reason, fixed typo 2016-10-14 22:52:14 +02:00
Twentysix
0f6e788214 [Mod] Added mod-log and various antispam features
Modlog with settable channel
Toggeable autoban for X number of different mentions in a single message
Toggeable deletion of repeated messages
2016-10-14 22:29:55 +02:00
Twentysix
ddd4b2bcff [Mod] Typo in message deletion 2016-10-11 18:49:25 +02:00
Twentysix
7a3c963009 FileIO to DataIO conversion (#410) 2016-10-10 03:40:09 +02:00
Twentysix
fe8ae25e1b [Mod] Send invite to user before softban 2016-10-03 21:32:22 +02:00
Twentysix
956668cea1 [Mod] Reimplemented cleanup loggers 2016-10-03 00:53:30 +02:00
Twentysix
3274209048 [Mod] Refactor cleanup functions 2016-10-02 00:20:40 +02:00
Twentysix
5f57ac29ee [Mod] Added clear commands for whitelist/blacklist 2016-09-18 02:34:37 +02:00
Twentysix
8b52bd56af Record users' nickname history
20 names and 20 nicknames maximum
2016-06-22 01:08:47 +02:00
Twentysix
60d607fee4 Added !cleanup after
Deletes all messages after specified message
2016-06-15 22:50:44 +02:00
Twentysix
242d5bf63b Update !editrole color's docstring 2016-06-11 19:23:33 +02:00
Twentysix
b0a017c34e Added !softban 2016-05-31 00:27:27 +02:00
Twentysix
11dddc4e40 Checks for administrator role 2016-05-22 18:39:57 +02:00
Twentysix
0bc7b41d8c Mass deletion support for cleanup (#254)
Defaults to slow deletion if not bot account
2016-05-13 22:56:59 +02:00