3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-18 23:09:59 +00:00
Commit graph

31 commits

Author SHA1 Message Date
Dragory
b641acb8cd
Fix "Max online" number not being bolded in !server 2020-01-22 02:20:50 +02: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
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
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
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
8a1df3f314 Add more info to !server, and tweak formatting 2020-01-12 16:34:55 +02:00
roflmaoqwerty
c532ab06fb ran npm run format 2020-01-12 22:31:30 +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
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
roflmaoqwerty
1d1de40e35 fixed whitespace 2020-01-11 10:26:47 +11:00
roflmaoqwerty
4623475fb5 Cleaned up code 2020-01-11 02:05:54 +11:00
roflmaoqwerty
12d8b19561 Added compact switch to !info 2020-01-11 01:39:02 +11:00
roflmaoqwerty
25c88ae630 Converted all remaining boolean parameters to flags 2020-01-04 16:00:21 +11:00
roflmaoqwerty
b249ab7142 fixed case issue 2019-12-29 00:51:04 +11:00
Dragory
a0edd962f3 Add support for regex in !search via -regex/-re 2019-12-01 01:01:20 +02:00
Dragory
c1cb5a4ed7 search: add -ids switch to list result ids; fix reactions from other messages affecting search results 2019-12-01 00:37:54 +02:00
Dragory
b47872bf87 utility: fix !clean response delete behaviour
The !clean response is intended to be deleted after a delay when
cleaning the current channel i.e. not specifying a different channel
to clean. This behaviour was reversed, so the response got deleted when
cleaning a different channel and stayed when cleaning the current
channel.
2019-11-30 22:23:11 +02:00
Dragory
23a9a5e800 utility: reply with archive url when !cleaning other channels 2019-11-30 22:22:25 +02:00
Dragory
53e7c2f17d utility: add --bot/-bot to !search to search for bot members 2019-11-30 22:16:57 +02:00
Dragory
17f34ffeb7 utility: fix !search --export/-e only showing the first 15 results 2019-11-30 22:13:48 +02:00
Dragory
64e1fbc10c Add !context utility command 2019-11-30 19:54:44 +02:00
Dragory
f8444c1a3d utility.about: fix git repo path; don't throw an error if a git repo is not found 2019-11-28 02:47:15 +02:00
Dragory
16111bbe84 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
Renamed from src/plugins/Utility.ts (Browse further)