Dragory
c0b12254b1
Small code clean-up
2020-01-22 23:31:48 +02:00
roflmaoqwerty
ee5d3fe8ef
Created config option to <@&> mention roles in the success messages for self assignable roles
2020-01-22 22:42:20 +11:00
Dragory
b641acb8cd
Fix "Max online" number not being bolded in !server
2020-01-22 02:20:50 +02:00
Dragory
5f8c42f575
Show self-grantable roles in docs, add configuration guide
2020-01-22 01:34:45 +02:00
Dragory
401eb21b3e
Merge branch 'master' of github.com:Dragory/ZeppelinBot
2020-01-22 01:27:48 +02:00
Dragory
b403db5188
Refactor SelfGrantableRoles to use config instead of command management, add max_roles option
2020-01-22 01:27:04 +02:00
Miikka
d869685d2c
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
a37624a50d
simplified reason assignment
2020-01-21 22:34:01 +11:00
roflmaoqwerty
24df1d827f
fixed a bug where mute reasons were not relayed to the user
2020-01-21 22:19:28 +11:00
Dragory
6a5e71d7c1
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
ba647c69ce
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
fd8d128048
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
d066f53bc5
Update Eris to 0.11.2
2020-01-20 23:43:22 +02:00
Dragory
5bc0f335d2
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
0818b0479b
Small code clean-up
2020-01-18 11:23:38 +02:00
Dragory
8245386f42
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
f7cb29b15c
Merge branch 'avatar-command' of git://github.com/roflmaoqwerty/ZeppelinBot into roflmaoqwerty-avatar-command
2020-01-18 11:19:10 +02:00
Dragory
d1764d5f87
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
6d6bc735e9
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
be28b64102
fixed bad parameter
2020-01-16 22:19:53 +11:00
roflmaoqwerty
3d5969979a
implemented user alerts for updates
2020-01-16 22:19:08 +11:00
roflmaoqwerty
5883121281
implemented user alerts for mute updates
2020-01-15 22:15:39 +11:00
roflmaoqwerty
9aa4516a3a
initial commit
2020-01-15 00:58:19 +11:00
roflmaoqwerty
a088476f96
added avatar command
2020-01-15 00:41:20 +11:00
roflmaoqwerty
c4d6556fe4
fixed default emotes for jumbo
2020-01-14 23:01:27 +11:00
roflmaoqwerty
b092dda079
default emoji support for !jumbo
2020-01-14 18:46:53 +11:00
roflmaoqwerty
08c1a2e9ac
implemented !jumbo
2020-01-14 18:46:53 +11:00
roflmaoqwerty
221da8c206
initial commit. Just need to implement gif resize
2020-01-14 18:46:52 +11:00
Dragory
7c06a8cfc4
Fix error when loading old persist configs
2020-01-12 17:24:55 +02:00
Dragory
73dc0d00fb
automod: fix mutes not applying
2020-01-12 17:17:01 +02:00
Dragory
bec583f96a
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
5a0f8badca
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
9b9b6a1518
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
ca5c7fed64
ReactionRoles: automatically clear reaction roles from unknown messages
2020-01-12 17:02:14 +02:00
Dragory
cfd713ff5f
ReactionRoles: add extra debug info for unknown messages
2020-01-12 16:37:40 +02:00
Dragory
8a1df3f314
Add more info to !server, and tweak formatting
2020-01-12 16:34:55 +02:00
Dragory
225f4084b2
Add function for formatting large numbers
2020-01-12 16:34:33 +02:00
Dragory
fd47ba9d69
Set default success emoji to zep_check; add error_emoji support, mirroring success_emoji but for error messages
2020-01-12 13:44:31 +02:00
Miikka
4e22d521f7
Merge branch 'master' into custom-success-emoji
2020-01-12 13:39:59 +02:00
Dragory
94ef7b8ee0
Update to Knub 29. Set up config types for Knub.
2020-01-12 13:37:43 +02:00
roflmaoqwerty
c532ab06fb
ran npm run format
2020-01-12 22:31:30 +11:00
roflmaoqwerty
b785efe490
success emoji now loaded from config
2020-01-12 22:21:14 +11:00
roflmaoqwerty
af882627a1
changed almost all references of utils successMessage to this.sendSuccessMessage. Waiting on knub changes to finish this
2020-01-12 22:21:14 +11:00
Dragory
1ae84afb12
Fix tslint errors
2020-01-12 12:04:20 +02:00
Dragory
2ee0bc2a3d
typings: fix duration arg not being marked as optional in vcalertCmd
2020-01-12 11:53:17 +02:00
Miikka
b1b4b85e94
Merge branch 'master' into fixLocateUser
2020-01-12 11:51:59 +02:00
Dragory
1aceb55a87
Run prettier and check tslint on entire codebase
...
Mainly to run these checks for the recent pull requests.
2020-01-12 11:48:31 +02:00
Miikka
65880d2e60
Merge pull request #25 from roflmaoqwerty/compact-info
...
Add -compact/-c flag to !info
2020-01-12 11:45:29 +02:00
Dragory
8c36e5fa01
logs: make sure the passed member object is stripped
2020-01-12 11:43:56 +02:00
Dragory
bf44a04e2c
Tweaks to Roles plugin before merging
...
Separate role adding/removing to two separate commands for clearer
help pages and to remove the conflict with the self-assignable roles
plugin.
Require the assignable_roles option to always be an array (even if an
empty one).
Allow role assignments to self.
Log role additions/removals via these commands with the right
moderator name (instead of relying on the auto-log from the event).
2020-01-12 11:39:54 +02:00