61 Commits

Author SHA1 Message Date
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
Will Tekulve
e0edfedde3 Merge branch 'develop' into cog-changes 2016-05-12 21:30:31 -04:00
Will Tekulve
0d92adf055 Merge fix. 2016-05-12 21:24:32 -04:00
Twentysix
2f12a3b2e9 Typo 2016-05-13 02:54:33 +02:00
Twentysix
eb6451a317 Rewrite audio (multivoice) (#249) 2016-05-13 02:28:21 +02:00
Twentysix
ef54883d15 Added way to reset nicknames 2016-05-01 02:57:31 +02:00
Twentysix
b7a2ded43b Quick and dirty fix for !cleanup 2016-05-01 01:09:00 +02:00
Twentysix
4eccdcdcd6 Added !set nickname and !rename <user> 2016-05-01 00:04:04 +02:00
Twentysix
deeb7efb37 Mod cog now records name changes
!names <user>
2016-04-23 23:29:09 +02:00
Twentysix
e376bd7c2c Permission error handling in cleanup 2016-03-01 13:09:39 +01:00
Twentysix
a58aebe218 Fix to !help failing in DM 2016-02-29 18:06:56 +01:00
Twentysix
22514af4d9 Polish 2016-02-29 13:53:09 +01:00
Will Tekulve
e794fb1c9a add serverowner check and make modset owner only 2016-02-28 20:24:26 -05:00
Will Tekulve
96e04bdf98 fixed variable name in ban 2016-02-27 21:28:25 -05:00
Will Tekulve
fc073343e4 add get_server for admin/mod settings for modset help 2016-02-27 04:17:01 -05:00