Dragory
85136c11e3
automod: add alert action support
2019-09-30 00:47:19 +03:00
Dragory
490dc587a2
Fix error when getUrlsInString doesn't match any URLs
2019-09-29 15:57:08 +03:00
Dragory
a905e82492
Add usageGuide/configurationGuide to PluginInfo, make trimPluginDescription dynamic
...
Previously trimPluginDescription was hardcoded to trim 6 spaces from
the beginning of every line. Now the function looks at the last non-
empty line and uses its indentation to determine how many spaces to
trim from the other lines.
2019-09-29 15:55:17 +03:00
Dragory
86b1df0a6a
docs api: plugin options -> defaultOptions, tweak config schema formatting
2019-09-29 15:54:19 +03:00
Dragory
4d7ab10fcf
Update to Knub 24. Update Node typings to fix error with [util.inspect.custom] property.
2019-09-22 17:06:22 +03:00
Dragory
1681a45069
More documentation work
2019-08-22 02:58:32 +03:00
Dragory
5bbc318c68
Continue work on new automod plugin
2019-08-22 01:23:19 +03:00
Dragory
ee6d622941
Auto-generate plugin docs (WIP)
2019-08-22 01:22:26 +03:00
Dragory
6bdb05e678
Make warn/kick/ban actions in ModActions available to other plugins via public methods
2019-08-22 01:18:36 +03:00
Dragory
404039e196
Add property/type for plugin info in ZeppelinPlugin
2019-08-21 22:07:13 +03:00
Dragory
ae43d890a1
Initial work on new automod
2019-08-18 16:40:15 +03:00
Miikka Virtanen
1e549ef2a3
Fix error if the bot attempts to save a message that was already saved
2019-08-14 10:57:39 +03:00
Miikka Virtanen
a48a58bd3c
Fix error when calling resolveUserId with null/missing user id
2019-08-14 10:55:34 +03:00
Miikka Virtanen
328ec379c5
Fix issues with long reasons in !ban/softban/kick. Display an error if a ban/softban/kick command fails.
2019-08-14 10:53:35 +03:00
Dragory
8d8343543d
Fix userid/channelid argument types; rename userid/userID to userId for consistency; misc code style fix
2019-08-10 01:48:02 +03:00
Dragory
afd677b270
ChannelArchiver: include message reactions in archive
2019-08-10 00:43:58 +03:00
Dragory
cd07a3e32e
ChannelArchiver: break out of the loop if there are no more messages to archive
2019-08-10 00:28:18 +03:00
Dragory
64f7b8cce4
ChannelArchiver: fix archiving of the wrong channel
2019-08-10 00:22:25 +03:00
Dragory
66ac85e300
Add ChannelArchiver plugin
2019-08-10 00:13:55 +03:00
Dragory
733855ac70
Add standardized function for asking the user to confirm an action
2019-08-10 00:13:35 +03:00
Dragory
307f95e0f4
Add a standardized way of checking for bot owners in global plugins
2019-08-10 00:12:16 +03:00
Dragory
5a1cf205a7
utils: safety checks to resolveUser; ignore a tslint error
2019-08-05 01:40:27 +03:00
Dragory
4f8dc4f0ae
ModActions: ignore server errors when getting bans
2019-08-05 01:39:11 +03:00
Dragory
a7507fa4ef
Debug2
2019-08-04 19:20:46 +03:00
Dragory
77ed889adc
Debug
2019-08-04 18:08:20 +03:00
Dragory
d679ab8b72
Temporary fixes to deepKeyIntersect while config modifiers are still a thing
2019-08-04 17:30:47 +03:00
Dragory
08d49ad477
Some improvements to 'unknown member' error reporting
2019-08-04 16:51:42 +03:00
Dragory
a1aa995a7a
Fix for non-object-literals in deepKeyIntersect
2019-08-04 16:47:42 +03:00
Dragory
e4f1a6eb15
Censor: use decoded TSafeRegex for blocked_regex, disable default i flag(!)
2019-08-04 15:48:03 +03:00
Dragory
82a0fa4b43
Use GlobalZeppelinPlugin when applicable
2019-08-04 15:47:09 +03:00
Dragory
a602164c13
Forgot to commit these a couple commits ago
2019-08-04 15:46:36 +03:00
Dragory
e0bef49a84
BotControl: more robust owner checking, use GlobalZeppelinPlugin, add show_plugin_config command
2019-08-04 15:46:09 +03:00
Dragory
a188b0433c
api: crash on unhandled rejections
2019-08-04 15:45:35 +03:00
Dragory
6043fd5cd3
Configs are not decoded as well as validated by io-ts. Improvements to config validation, error messages, and TSafeRegex type.
2019-08-04 15:44:41 +03:00
Dragory
6282c13b70
Don't fetch all users on load (again...)
2019-08-04 13:42:39 +03:00
Dragory
68380c5ac3
Add support for safe regex type checking; make sure regexes passed to Censor are safe
2019-08-04 13:41:35 +03:00
Dragory
aab3a0cb1d
Post: don't confirm post commands if the target channel is the same as the command channel
2019-08-04 13:18:02 +03:00
Dragory
5aa1f3cec9
Code cleanup
2019-08-04 13:16:46 +03:00
Dragory
f0ba484f79
Utility: make sure the data in !info is always fresh
2019-08-04 13:16:23 +03:00
Dragory
09464e56e3
Mutes: fix mutes/unmutes sometimes not applying/removing the role
2019-08-04 13:16:01 +03:00
Dragory
66d6642bc6
Add forceFresh parameter to resolveMember. Clean up resolveUser/resolveMember code.
2019-08-04 13:14:23 +03:00
Dragory
c2935bd1d7
Better config validator error message for missing properties
2019-07-22 13:50:41 +03:00
Dragory
ee58769460
Add bot alerts for missing audit log permissions; ignore internal server errors on discord's side when fetching audit logs
2019-07-22 13:50:24 +03:00
Dragory
fb481aa583
CompanionChannels: snake_case for config options, 'companions' -> 'entries'
2019-07-22 13:27:28 +03:00
Dragory
6eff4dd80f
Better debug message
2019-07-22 13:14:10 +03:00
Dragory
20d7d77178
CompanionChannels: refactor config format, don't do unnecessary permission changes
2019-07-22 13:11:14 +03:00
Dragory
00e34b322d
Fix unknown property validation; fix override validation; be clear about which property is unknown
2019-07-22 13:09:05 +03:00
Dragory
6f75185e74
Handle OAuth2 token errors separately from regular server errors
2019-07-22 02:44:45 +03:00
Dragory
828385d0eb
Fix YAML errors not showing the proper error message in config editor
2019-07-22 02:00:15 +03:00
Dragory
004a753a58
Revert emoji match fix
2019-07-22 01:33:38 +03:00