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

877 commits

Author SHA1 Message Date
roflmaoqwerty
e7eabc62e9 !avatar now properly animates gif avatars (#34) 2020-01-28 22:21:03 +02:00
roflmaoqwerty
c772628b5a Remove manual mutes (#33)
The unmute command can now unmute users who have had the mute role manually applied to them
2020-01-28 22:20:05 +02:00
Dragory
ffb7162b2c automod: delete obsolete constant; bump recent action expiry time to 5 minutes 2020-01-28 22:18:12 +02:00
Dragory
e882632753 Bot response style tweak 2020-01-28 22:16:37 +02:00
Dragory
d1eab6858d Fix [object Promise] on automod case notes 2020-01-28 22:16:19 +02:00
Dragory
8862cb23de Fix antiraid_level override criteria not working 2020-01-28 22:15:32 +02:00
Dragory
873167fe8f Fix antiraid level not being set properly 2020-01-27 22:07:46 +02:00
Dragory
fcfbb97c8a Fix various automod actions not working for 'other' type matches 2020-01-27 21:59:13 +02:00
Dragory
c0c919a5ce Add anti-raid levels to automod. Large refactor of spam detection. Add member_join and member_join_spam triggers.
Anti-raid levels don't by themselves do anything, but they can be
used in overrides to activate specific automod items.

Spam detection should now be more reliable and also combine further
spam messages after the initial detection into the archive.

Messages deleted by automod no longer create the normal deletion log
entry. Instead, the AUTOMOD_ACTION log entry contains the deleted
message or an archive if there are multiple (i.e. spam).
2020-01-26 19:54:32 +02:00
Dragory
8a7cfb8a90 Add auto-delete plugin 2020-01-23 01:31:23 +02:00
Dragory
a220bde777 Small code clean-up 2020-01-22 23:31:48 +02:00
Miikka
d0136f84a7 Merge pull request #31 from roflmaoqwerty/mention-self-assignable-roles
Role mentions for self assignable role plugin
2020-01-22 23:27:47 +02:00
roflmaoqwerty
b0c47be99e Created config option to <@&> mention roles in the success messages for self assignable roles 2020-01-22 22:42:20 +11:00
Dragory
278e45b055 Fix "Max online" number not being bolded in !server 2020-01-22 02:20:50 +02:00
Dragory
282c32eb37 Show self-grantable roles in docs, add configuration guide 2020-01-22 01:34:45 +02:00
Dragory
443997e78e Merge branch 'master' of github.com:Dragory/ZeppelinBot 2020-01-22 01:27:48 +02:00
Dragory
15c6c4d939 Refactor SelfGrantableRoles to use config instead of command management, add max_roles option 2020-01-22 01:27:04 +02:00
Miikka
81398a6fe7 Merge pull request #30 from roflmaoqwerty/mute-reason-fix
fixed a bug where mute reasons were not relayed to the user
2020-01-21 13:34:41 +02:00
roflmaoqwerty
bb875bff98 simplified reason assignment 2020-01-21 22:34:01 +11:00
roflmaoqwerty
ae36c33ca9 fixed a bug where mute reasons were not relayed to the user 2020-01-21 22:19:28 +11:00
Dragory
a1704112b6 Tweaks to !server numbers. Try to prevent unnecessary API calls.
!server can now also use numbers from the invite of servers with
a vanity URL.

API calls for the invite and the REST guild endpoint are now memoized.

Since Guild.fetchAllMembers() now returns a promise, tweaked
refreshMembersIfNeeded() to not make unnecessary API calls if called
multiple times in rapid succession.
2020-01-21 00:24:04 +02:00
Dragory
6650c109aa Make !server numbers more consistent
Offline member count is now derived from guild member count and
calculated online member count. The numbers might still not match the
real member counts, but at least they add up to the total member
count.

Eris 0.11.2 also made Guild.fetchAllMembers() return a promise, which
means !server will now properly wait for all members to load.
2020-01-21 00:00:47 +02:00
Dragory
728ef1733f Change tsconfig target to es2020
Node.js 12.9.0 and up should support all es2020 features
2020-01-20 23:54:52 +02:00
Dragory
caefd012a7 Update Eris to 0.11.2 2020-01-20 23:43:22 +02:00
Dragory
0e5cc088d3 Fix persist plugin removing already-granted roles
Specifically, the mute role granted by the mutes plugin.
2020-01-20 23:37:29 +02:00
Dragory
2599204b89 Small code clean-up 2020-01-18 11:23:38 +02:00
Dragory
ab159a3ddd Merge branch 'mute-update-message' of git://github.com/roflmaoqwerty/ZeppelinBot into roflmaoqwerty-mute-update-message 2020-01-18 11:23:08 +02:00
Dragory
00a1eaf4f7 Merge branch 'avatar-command' of git://github.com/roflmaoqwerty/ZeppelinBot into roflmaoqwerty-avatar-command 2020-01-18 11:19:10 +02:00
Dragory
5337f3cbbb Merge branch 'roflmaoqwerty-jumbo-command' 2020-01-18 11:17:12 +02:00
Dragory
72af3758d7 Add cooldown to !jumbo
Since the command uses extra server resources for resizing the image,
I want to limit its use a bit. Might look into a per-channel or
per-guild cooldown in the future rather than per-user, but this will
work for now.
2020-01-18 11:15:35 +02:00
Dragory
daf2f9dfaa Fix TS error with twemoji typings without dom lib
Including the dom lib doesn't make much sense since we're not in a
browser environment. While this solution isn't perfect either, I
think it's more fitting.
2020-01-18 11:12:11 +02:00
roflmaoqwerty
f37fc69895 fixed bad parameter 2020-01-16 22:19:53 +11:00
roflmaoqwerty
65badc71f1 implemented user alerts for updates 2020-01-16 22:19:08 +11:00
roflmaoqwerty
cd16fe912d implemented user alerts for mute updates 2020-01-15 22:15:39 +11:00
roflmaoqwerty
09308285ae initial commit 2020-01-15 00:58:19 +11:00
roflmaoqwerty
45e304a954 added avatar command 2020-01-15 00:41:20 +11:00
roflmaoqwerty
51a991baaf fixed default emotes for jumbo 2020-01-14 23:01:27 +11:00
roflmaoqwerty
343ddc5d6d Merge branch 'jumbo-command' of https://github.com/roflmaoqwerty/ZeppelinBot into jumbo-command 2020-01-14 18:48:05 +11:00
roflmaoqwerty
7205aae5ef default emoji support for !jumbo 2020-01-14 18:46:53 +11:00
roflmaoqwerty
6c9cb78a21 implemented !jumbo 2020-01-14 18:46:53 +11:00
roflmaoqwerty
cda702d555 initial commit. Just need to implement gif resize 2020-01-14 18:46:52 +11:00
roflmaoqwerty
e75be06585 default emoji support for !jumbo 2020-01-14 18:08:49 +11:00
roflmaoqwerty
db40fd0e52 implemented !jumbo 2020-01-14 01:52:22 +11:00
Dragory
161d2dd3c3 Fix error when loading old persist configs 2020-01-12 17:24:55 +02:00
Dragory
eb8b313d8f automod: fix mutes not applying 2020-01-12 17:17:01 +02:00
Dragory
0a92680a30 search: don't throw an error if the search results message is removed before the reactions are removed 2020-01-12 17:16:18 +02:00
Dragory
4c404aa2a3 Persist: remove voice mute persist support
Since voice mutes cannot be re-applied unless the member is in voice,
we can't re-apply the voice mute automatically on join and would have
to do it later when they first join voice, which could get messy if
they were not supposed to be voice muted anymore after all (if they
e.g. don't use voice for a long time).
2020-01-12 17:05:55 +02:00
Dragory
72783628b4 AutoReactions: send a bot alert if the bot is missing permissions to apply auto reactions (triggered by unknown messages, so usually 'read message history') 2020-01-12 17:05:30 +02:00
Dragory
bedf0c436c ReactionRoles: automatically clear reaction roles from unknown messages 2020-01-12 17:02:14 +02:00
Dragory
66874615f7 ReactionRoles: add extra debug info for unknown messages 2020-01-12 16:37:40 +02:00