Dragory
9250c84637
Reorganize project. Add folder for shared code between backend/dashboard. Switch from jest to ava for tests.
2019-11-02 22:11:26 +02:00
Dragory
12f25346ec
More documentation work
2019-08-22 02:58:32 +03:00
Dragory
9e69b3bf5b
Auto-generate plugin docs (WIP)
2019-08-22 01:22:26 +03:00
Dragory
24afc0a503
Typing fixes; show last reload time in !about
2019-07-22 00:09:45 +03:00
Dragory
039f0452fb
Add io-ts config schemas to all guild plugins
2019-07-21 21:15:52 +03:00
Dragory
9109e9a2c3
Split BaseRepository into non-guild and guild
...
BaseRepository includes all the non-guild-specific functionality,
such as with() and getRelations().
BaseGuildRepository includes guild-specific functionality, such as
getInstance().
2019-05-25 21:25:34 +03:00
Dragory
ae780bfc90
Some fixes for slowmodes not being removed properly
2019-05-11 06:22:26 +03:00
Dragory
e892d432c6
!slowmode with only the channel argument now shows that channel's current slowmode; show error if the bot was unable to apply a native slowmode
2019-05-07 22:24:59 +03:00
Dragory
c7fc789c1e
Add a generic bot alert log type. Use this in several places.
2019-05-04 19:18:16 +03:00
Dragory
2e74b2de72
Optimizations + debug logging
2019-05-02 18:34:15 +03:00
Dragory
f8b2c71fef
User resolving optimizations + debug logging
2019-05-02 18:14:36 +03:00
Dragory
70c0d11c5b
Fix api error check when applying slowmode
2019-05-02 17:47:18 +03:00
Dragory
97f937fc6f
Add debug logging for failed slowmodes due to permissions
2019-05-02 08:47:44 +03:00
Dragory
ef9afee8b4
Fix member fetching in a few places
2019-05-02 08:21:11 +03:00
Dragory
a410a4e994
Fix some argument type names
2019-04-20 19:55:35 +03:00
Dragory
cb6bfaefe0
Make !slowmode 0 an alias for !slowmode disable
2019-04-20 19:33:39 +03:00
Dragory
9a206455dc
Deprecate GuildActions. Fix double case posting when muting a user for message spam. Update to new mute/case style when muting a user for "other" spam.
...
GuildActions turned out to be a fairly pointless abstraction in the end.
It didn't really solve the problems it was meant to solve (that is,
reduce code spaghetti by having all inter-plugin calls go through a
single service, and allow easier ways to replace core plugins with
alternatives that share the same interface) any better than simply
using `this.getPlugin()` when needed, and introduced extra complexity
and made static analysis messier.
2019-04-20 17:36:28 +03:00
Miikka
91a713b3aa
Fix bot-maintained slowmodes not being applied
2019-04-15 14:11:58 +03:00
Miikka
2fda98db44
Fix slowmodes longer than 6h
2019-04-15 14:01:49 +03:00
Dragory
c1d3ed6815
Allow overriding default unit for delay strings; use seconds by default for slowmodes
2019-04-14 14:05:16 +03:00
Dragory
be0ff6b59b
Use command aliases/overloads where applicable
2019-04-13 02:23:45 +03:00
Dragory
571dcf967e
Slowmode: support native slowmode up to 6h
2019-04-13 01:56:11 +03:00
Dragory
289b425a25
Update to Knub 19.1.1 and update plugins accordingly
2019-04-13 01:44:18 +03:00
Dragory
8c54385d9f
Slowmode: don't act on messages with interrupted locks (e.g. censored messages); add !slowmode list
2019-03-16 12:32:25 +02:00
Dragory
c129341e61
Slowmode: add support for native slowmode
2019-03-16 11:26:50 +02:00
Dragory
1c77269643
Add types for all plugin configs and permissions. Update code to work with Knub 18.
2019-03-04 21:44:04 +02:00
Dragory
9c099d5541
Update to Knub 17.0.1, remove all d.nonBlocking() calls
2019-02-17 15:19:55 +02:00
Dragory
101c2d5e6e
More non-blocking optimization
2019-01-13 23:37:53 +02:00
Dragory
12f309d412
Update to Knub 14.0.0 and make changes to plugins accordingly
2019-01-03 06:15:28 +02:00
Dragory
2c3bcc94e2
slowmode: add !slowmode clear to clear slowmode from specific users
2019-01-03 04:15:18 +02:00
Dragory
37b791bd56
Add Slowmode plugin
2018-12-15 17:04:04 +02:00