3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-15 13:51:51 +00:00
Commit graph

457 commits

Author SHA1 Message Date
Dragory
15408b04d7 templateFormatter: add choose() as a shortcut for cases() with a preset index that picks from the cases randomly 2019-03-16 18:52:45 +02:00
Dragory
656fb1baf3 Add !tag eval for testing tag formatting before creating a tag 2019-03-16 18:37:42 +02:00
Dragory
e61fe722c5 Tags: add tag() function to call other tags (with infinite loop protection 👀) 2019-03-16 18:16:59 +02:00
Dragory
45b06ece20 Logs: fix double member IDs in voice channel logs 2019-03-16 17:54:26 +02:00
Dragory
96b2d33423 templateFormatter: add cases() template function; Tags: add set/get tag functions to store/retrieve variables within tags 2019-03-16 17:54:05 +02:00
Dragory
a8d274c054 Tags: don't attempt to send empty messages 2019-03-16 17:32:32 +02:00
Dragory
3491f3e0a2 templateFormatter: support negative numbers for numeric arguments; add more base functions 2019-03-16 17:28:43 +02:00
Dragory
8711f86193 Tags: don't crash when using tags with invalid format, but log it to console instead 2019-03-16 17:00:57 +02:00
Dragory
f27da2c56f templateFormatter: return empty string for null/undefined variables; Tags: catch template syntax errors on tag creation; add mention() tag function 2019-03-16 16:59:01 +02:00
Dragory
db5d93b5c2 Logs: fix crash in userMention/channelMention if the user/channel doesn't exist 2019-03-16 16:39:32 +02:00
Dragory
8f898ed972 templateFormatter: fix empty string args not getting counted as arguments; add concat base template function 2019-03-16 16:39:07 +02:00
Dragory
f7f08ffd3b Tags: show tag source when doing just !tag shortcut 2019-03-16 16:23:51 +02:00
Dragory
d914e8a717 Tags: switch from %arg syntax to regular template variable format with indexes, e.g. {args.0} 2019-03-16 16:18:28 +02:00
Dragory
11558df665 Logs: add permission for whether a user is pinged in logs or not (mainly to not ping mods); templateFormatter: fix error when following a plain value variable with a function variable 2019-03-16 16:10:30 +02:00
Dragory
d5a902bcdd ModActions: log sent DMs 2019-03-16 15:44:20 +02:00
Dragory
ba3af1cb63 Add templateFormatter; migrate from formatTemplateString to templateFormatter 2019-03-16 15:42:55 +02:00
Dragory
ea3fde49a6 Add user mention to message deletion log 2019-03-16 12:37:45 +02:00
Dragory
0be819462b 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
e1eb110ecd Censor: hold a lock for the evaluated message and interrupt said lock if the message is deleted 2019-03-16 12:31:37 +02:00
Dragory
515c91d2c2 Logs: make default log message for censored messages clearer 2019-03-16 12:31:05 +02:00
Dragory
e755784483 Improve mentions in default log messages. Add !vcmove logging. Don't attempt to !vcmove to the same channel the user is already in. 2019-03-16 11:45:30 +02:00
Dragory
cdd977c131 Cleanup 2019-03-16 11:42:28 +02:00
Dragory
cabccf5bd3 Slowmode: add support for native slowmode 2019-03-16 11:26:50 +02:00
Dragory
7e9de889d4 Fix error in !info when the API tells us a user has a role that doesn't exist 2019-03-09 18:16:42 +02:00
Dragory
4b8e771d26 Self grantable role tweaks 2019-03-08 00:48:52 +02:00
Dragory
374e79e2dc Include durations in mute and unmute case notes, clarify bot responses when updating an active mute 2019-03-07 22:35:33 +02:00
Dragory
18f16f6bad ModActions: make the text that tells how the user was notified more descriptive 2019-03-07 22:09:14 +02:00
Dragory
f4a11b2105 BotControl: cleanup and type tweak 2019-03-07 20:50:53 +02:00
Dragory
b7b42705f9 Add types for all plugin configs and permissions. Update code to work with Knub 18. 2019-03-04 21:44:04 +02:00
Dragory
af060cbb72 ReactionRoles: some more rate limit tweaking 2019-02-24 01:06:40 +02:00
Dragory
cb76c47bf4 ReactionRoles: slow down reaction removal to avoid rate limiting 2019-02-23 23:39:12 +02:00
Dragory
ffafc765d8 ModActions: !cases without id now returns 5 most recent cases created by you, or the mod specified with --mod 2019-02-23 22:40:43 +02:00
Dragory
7ced26cd19 BotControl: don't crash on global reaction role refresh errors 2019-02-23 22:24:05 +02:00
Dragory
9bab943f45 BotControl: add several utility functions 2019-02-23 22:21:52 +02:00
Dragory
152b86e587 ModActions: show if the user was messaged in bot response to actions 2019-02-23 22:05:54 +02:00
Dragory
09b3775247 ModActions: join reason attachments with spaces, not newlines 2019-02-23 21:54:22 +02:00
Dragory
f7274225f9 Cleanup 2019-02-23 21:53:41 +02:00
Dragory
31331f67c5 ModActions: fixes and tweaks to !addcase 2019-02-23 21:52:36 +02:00
Dragory
23f68e734e ModActions: support attachments in reasons 2019-02-23 21:47:55 +02:00
Dragory
147dcc973d ModActions: add !cases cmd without user, tweak old !cases response message 2019-02-23 21:33:57 +02:00
Dragory
0c974e1d16 ModActions: remove aliases showcase, usercases 2019-02-23 21:32:38 +02:00
Dragory
b462868c32 BotControl: add cmd to refresh reaction roles globally 2019-02-23 21:23:28 +02:00
Dragory
ddcc56d0ba ReactionRoles: new usage model, optimization
old: click reaction to toggle your role
new: click reaction to add role, click X reaction to clear roles

Multiple role changes in quick succession are now also batched into
a single member.edit() call.
2019-02-23 21:21:05 +02:00
Dragory
56a1f51f56 plugins.Logs: log multiple role changes in one properly 2019-02-23 21:20:35 +02:00
Dragory
76b9cb6b0c Queue: allow overriding queue timeout 2019-02-23 21:19:46 +02:00
Dragory
b52d1793bf Merge branch 'master' of github.com:Dragory/ZeppelinBot 2019-02-23 20:07:13 +02:00
Dragory
bb781311d4 Remove WIP plugin that was accidentally committed 2019-02-23 20:06:58 +02:00
Miikka
81e6465cdf
Update ModActions.ts 2019-02-20 17:04:42 +02:00
Dragory
6491c48289 Add reminders 2019-02-20 00:01:14 +02:00
Dragory
b5c55f9510 SelfGrantableRoles: improve role name and alias parsing by accepting commas as delimiters as well 2019-02-19 00:22:37 +02:00