Commit Graph

225 Commits

Author SHA1 Message Date
WatDuhHekBro 5c3896c2db Separated command handler from utility modules and fixed lingering errors in commands 2021-04-04 23:43:10 -05:00
WatDuhHekBro 6ed4c0988f Implemented rough draft of info resolver method 2021-04-04 22:40:31 -05:00
WatDuhHekBro 2a4d08d0bc Added special case for bot DMs 2021-04-04 20:01:29 -05:00
WatDuhHekBro 6eea068909 Reworked Command.execute and subcommand recursion 2021-04-04 19:35:10 -05:00
WatDuhHekBro 63441b4aca Added more type guards/properties to Command class 2021-04-04 17:28:32 -05:00
Mijyuoon 4c7b8200da
Added my almighty ass to .whois list 2021-04-04 23:54:51 +03:00
WatDuhHekBro 3362f9fbbe Prototyped stream notifications like CheeseBot 2021-04-03 21:35:55 -05:00
WatDuhHekBro f650faee89 Reorganized code dealing with the command class 2021-04-03 05:26:22 -05:00
WatDuhHekBro c1b298a407 Added welcome message and system logs channel 2021-04-02 23:11:18 -05:00
WatDuhHekBro ee9c88996e Ported events and welcome event 2021-04-01 08:41:49 -05:00
WatDuhHekBro 9adc5eea6e Started attempting to split up core handler 2021-04-01 05:44:44 -05:00
WatDuhHekBro df3e4e8e6e Made some minor changes to modules 2021-03-31 02:00:03 -05:00
WatDuhHekBro 974985586d Rearranged command categories 2021-03-30 22:22:25 -05:00
WatDuhHekBro 945102b7cf Reworked event loading 2021-03-30 21:56:25 -05:00
WatDuhHekBro 3ef487c4a4 Reorganized lib/libd functions and Lavalink 2021-03-30 21:19:04 -05:00
WatDuhHekBro 6a4107c01e Copied over the rest of TravBot v2 commands 2021-03-30 20:40:29 -05:00
WatDuhHekBro 86ccb74ac2 Highly biased code review 2021-03-30 18:14:15 -05:00
WatDuhHekBro 02c18f57c7 Reworked paginate function 2021-03-30 07:16:31 -05:00
WatDuhHekBro 475ecb3d5d Reworked permission handling 2021-03-30 05:54:52 -05:00
WatDuhHekBro 51fa9457b4 Fully separated utility functions from command menu 2021-03-30 05:25:07 -05:00
WatDuhHekBro 10c1cd9cff Separated custom logger from command menu 2021-03-30 04:02:01 -05:00
WatDuhHekBro 00addd468c Merge branch 'typescript' of https://github.com/keanuplayz/TravBot-v3 into experimental-core 2021-03-30 03:23:11 -05:00
WatDuhHekBro 1954b2d999 Fixed small error 2021-03-28 13:58:10 -05:00
WatDuhHekBro 3b1b8ec914 Added a timeout to regex search 2021-03-28 12:49:45 -05:00
WatDuhHekBro b3e1b5e140 Removed problematic feature 2021-03-28 11:01:07 -05:00
WatDuhHekBro 90c41c8df4 Added query to lsemotes and searching other guilds 2021-03-28 09:34:31 -05:00
Keanu Timmermans 705e093999
Added message quoting.
See https://is.gd/lpGqxj
2021-03-20 13:27:57 +01:00
Keanu Timmermans 38e03a85bb
Too lazy to add interceptor; get content instead.
This is for my running joke of reacting with 🚱
to CheeseBot's "Remember to drink water!" message.
2021-03-16 19:07:53 +01:00
Keanu Timmermans 0e1d8f3907
Merge branch 'typescript' of github.com:keanuplayz/TravBot-v3 into typescript 2021-03-13 15:09:27 +01:00
Keanu Timmermans 3f4ee9315f
Added channel lock for eco. 2021-03-13 15:09:18 +01:00
Keanu Timmermans cec38cf4bd Stop deleting the emote invocation. 2021-03-07 22:07:59 +01:00
フズキ c71406a8d0
eco-bet: added a check for bet target's money 2021-02-23 23:25:28 +01:00
フズキ d6548c53db
eco-bet: improvements
- duration bounds
- link to calling message
2021-02-21 14:11:25 +01:00
Dmytro Meleshko e22250b3f1 introduce the terrible hack for reducing memory usage 2021-01-29 21:29:46 +02:00
Dmytro Meleshko 303e81cc37 reduce the amount of cache lookups 2021-01-29 21:12:53 +02:00
Dmytro Meleshko 0cba164f3d get rid of @ts-ignore or something 2021-01-29 19:15:32 +02:00
Dmytro Meleshko 593efb3602 raise the ES target level and enable sourcemaps in tsconfig.json 2021-01-29 19:07:39 +02:00
Dmytro Meleshko 417bfc8a18 get rid of the remaining calls to BaseManager#resolve to make all cache access explicit 2021-01-29 18:21:06 +02:00
Keanu Timmermans a21ed7a97f
Fixed info using `heapTotal` for both values. 2021-01-29 14:34:46 +01:00
WatDuhHekBro 3a47acf05f Merge branch 'typescript' of https://github.com/keanuplayz/TravBot-v3 into experimental-core 2021-01-28 18:37:50 -06:00
Keanu Timmermans 74d36e36b2 Improved logic of role display on info.
Co-authored-by: Mijyuoon <mijuoon@gmail.com>
2021-01-29 01:15:42 +01:00
Keanu Timmermans baf17e6c76 Corrected usage of trimarray in info. 2021-01-29 00:57:50 +01:00
フズキ 055a57e928
eco-bet: use askYesOrNo to clean up 2021-01-26 19:54:43 +01:00
フズキ 499aea9e66
eco-bet: save storage modification 2021-01-26 18:11:50 +01:00
フズキ 38eb0906ee
eco/bet: Clean up comments and add feedback 2021-01-26 16:28:04 +01:00
WatDuhHekBro 1fd8634ef1 Tinkered with pre-commit, jest, and tsconfig 2021-01-26 07:22:23 -06:00
WatDuhHekBro 5ed9d79715 Changed command loading to use a glob pattern 2021-01-26 03:52:39 -06:00
フズキ 7105c6284f
Add 'bet' command to the 'eco' module 2021-01-25 23:06:12 +01:00
WatDuhHekBro d7c18d1b06 Fixed time setup accounting for differences in day 2021-01-24 22:46:48 -06:00
WatDuhHekBro 8da5ad0ca6 Addressed issue with inline replies using prefix 2021-01-24 19:12:43 -06:00
WatDuhHekBro 7b4d8b934c Added time command for user-submitted timezones 2021-01-24 08:07:58 -06:00
WatDuhHekBro f8d6c0d336 Reverted changes except for the file location 2021-01-02 20:16:15 -06:00
WatDuhHekBro 5537cec29a Removed structure redundancy and saves to data/ 2021-01-01 19:44:43 -06:00
Keanu Timmermans a99386c431
Added (currently broken) emote dumper. 2020-12-31 16:10:56 +00:00
WatDuhHekBro 2e2bd57598
Fixed the info command and its problems (kinda) 2020-12-29 12:34:41 +00:00
WatDuhHekBro 799c477baf Tried a different emote capitalization heuristic 2020-12-16 23:37:07 -06:00
WatDuhHekBro 2017e45403 Tried adding some heuristics to searching emotes 2020-12-16 23:12:17 -06:00
WatDuhHekBro 9ab588468e Added eco monday 2020-12-16 01:24:26 -06:00
WatDuhHekBro 3d3631c65a Fixed some inaccuracies in eco 2020-12-15 17:46:03 -06:00
WatDuhHekBro 5b3b5d0611 Added some eco aliases and fixed eval command 2020-12-15 17:29:40 -06:00
WatDuhHekBro 4752adc7b4 Ported the old eco guild command 2020-12-15 05:15:28 -06:00
WatDuhHekBro 5665a91af4 Added more functionality to the react command 2020-12-15 03:22:32 -06:00
WatDuhHekBro 5165c5ec4b Changed max width to 120 columns 2020-12-15 01:56:09 -06:00
WatDuhHekBro 39f89a9f63 Formatting Preview Alpha 2020-12-14 19:44:28 -06:00
WatDuhHekBro 98e47e3796 Fixed the error prevention in the neko command 2020-12-14 02:13:31 -06:00
WatDuhHekBro 927e306e9a Hotfix: Buying an item now saves data properly 2020-12-14 01:54:46 -06:00
WatDuhHekBro 659fdab609
Merge branch 'typescript' into dev 2020-12-14 01:20:04 -06:00
WatDuhHekBro 4f443d3e4f Ported over "eco shop" and "eco buy" 2020-12-14 01:13:16 -06:00
WatDuhHekBro 8417a1ba57 Split up the money command into several parts 2020-11-04 02:04:07 -06:00
Keanu Timmermans 9348bda210
Merge branch 'typescript' into music 2020-10-22 16:44:49 +02:00
Keanu Timmermans 1abab93362 Ported all legacy commands! (except eco) 2020-10-22 14:24:58 +00:00
Keanu Timmermans beab6cb1fc Did a number of things.
- Upgraded dependencies
- Added eval command (admin)
- Added bot info command (info)
2020-10-22 13:41:02 +00:00
Keanu Timmermans cdf2c47f0c Fixed up info guild. 2020-10-22 13:39:33 +00:00
Keanu Timmermans dbebb656b6 Added shorten command. 2020-10-22 13:38:57 +00:00
Keanu Timmermans 942489630f
Reimplemented music functionality.
...in the most disgusting way possible!
2020-10-20 21:10:03 +02:00
Keanu Timmermans 0c0fc083cf Moved emote cmds to utility category.
Updated Discord.JS version to 12.4.0.
Added channelCreate/remove events.
Removed husky.
2020-10-20 12:04:13 +00:00
Keanu Timmermans 74b4d4272c Added husky. 2020-10-15 09:23:24 +00:00
Keanu Timmermans 57433cc594 Completed lsemotes. Various other changes.
- Replaced deprecated `version` input with `dockerx-version`
- Replaced deprecated `equals` function with `strictEquals`
- Fixed indentation on paginate function.
2020-10-15 09:02:24 +00:00
Lexi 57a4c9f523 Added WIP emote list.
@WatDuhHekBro also fixed the paginate function in lib.ts.
This had some inconsistencies.

Aside from that, to reduce image size, docker now ignores node_modules.

Co-authored-by: WatDuhHekBro <watduhhekbro@gmail.com>
2020-10-13 22:11:26 +02:00
WatDuhHekBro b3209d1cf1 Added documentation + misc patches 2020-08-30 16:26:18 -05:00
WatDuhHekBro 3767a10829 Modularized finding members by their username 2020-08-27 22:46:40 -05:00
WatDuhHekBro 8ca171e924 Added test suite and production builder 2020-08-25 21:49:08 -05:00
Keanu Timmermans eed1438fb2 Removed fun.ts 2020-08-18 09:22:07 +00:00
Keanu Timmermans bd0984eb69 Moved poll command to fun category. 2020-08-17 17:38:15 +00:00
Keanu Timmermans 5b3df90067 Moved 8ball to Fun category. 2020-08-15 21:02:58 +00:00
WatDuhHekBro 5abda092e0 Moved core/lib/perforate to ArrayWrapper/split 2020-08-14 13:31:05 -05:00
WatDuhHekBro 32256f50fe Ported the scanemotes command 2020-08-14 12:51:27 -05:00
WatDuhHekBro 877a41fac2 Added command aliases 2020-08-14 11:35:53 -05:00
WatDuhHekBro 139630ce9f Various small changes/fixes 2020-08-14 07:50:24 -05:00
WatDuhHekBro 53705e76c5 Added removing emotes in paginate if possible 2020-08-14 05:21:19 -05:00
WatDuhHekBro 77422538df Added pinging bot for prefix and var string prefix 2020-08-14 04:43:45 -05:00
Keanu Timmermans a86e11ed23
Added lsemotes command to util. 2020-08-13 22:39:10 +02:00
Keanu Timmermans 10f4f30137
Added poll to fun. 2020-08-13 22:03:18 +02:00
Keanu Timmermans ed14ccefca
Added 8ball command to fun. 2020-08-13 20:58:41 +02:00
Keanu Timmermans 8dd87c89a9
Largely optimized activity command. 2020-08-13 20:11:14 +02:00
Keanu Timmermans 6a628a4791
Added activity command to admin. 2020-08-13 18:49:55 +02:00
Keanu Timmermans d85040b313
Added guilds command to admin. 2020-08-13 18:13:55 +02:00
Keanu Timmermans 979c00ddc8
Added nick command to admin. 2020-08-13 17:57:22 +02:00
Keanu Timmermans facaf001ad
Added purge command to admin. 2020-08-13 17:06:10 +02:00
Keanu Timmermans 9d0caaf976
Added status command to admin. 2020-08-12 22:33:54 +02:00
WatDuhHekBro 6744faa6e6 Fixed userFlags 2020-08-05 22:21:36 -05:00
WatDuhHekBro 9816298f55 Patched up the info command 2020-08-05 22:11:11 -05:00
Keanu Timmermans 48097b729d
Added WIP info command. 2020-08-05 22:08:26 +02:00
WatDuhHekBro bf84c2970d Added a permissions system 2020-07-26 05:02:35 -05:00
WatDuhHekBro 2488239598 Modularized command resolution 2020-07-25 21:35:53 -05:00
WatDuhHekBro 4b03912e89 Added command categories 2020-07-25 20:14:11 -05:00
WatDuhHekBro 14f78a91dc Relocated loadCommands and loadEvents 2020-07-25 18:32:49 -05:00
WatDuhHekBro 113fc965a9 Added dynamically loaded events 2020-07-25 06:01:24 -05:00
WatDuhHekBro 295995aba2 Ported CrossExchange v1.0.1 and removed stonks 2020-07-25 03:15:26 -05:00
Keanu Timmermans a0a322a7ee Removed JS structure. 2020-07-18 23:16:27 +02:00
Keanu Timmermans d7f2232dc0 Implemented an event handler.
Also fixed Uptime's super.
2020-07-08 12:04:19 +02:00
Keanu Timmermans e04587ffca Finished help command.
Also categorized all commands.
2020-07-01 15:35:37 +02:00
Keanu Timmermans a5da139b97 Altered the way aliases work. 2020-07-01 14:44:02 +02:00
Keanu Timmermans d3958dcb11 Added command info to help command. 2020-07-01 14:42:57 +02:00
Keanu Timmermans 5645d856cf Added removeDuplicates and capitalise functions. 2020-07-01 14:38:07 +02:00
Keanu Timmermans 58787c907c Added a simple help command.
Currently does nothing yet.
2020-07-01 14:35:08 +02:00
Keanu Timmermans 3033b791f5 Added userinfo and botinfo command. 2020-07-01 14:26:58 +02:00
Keanu Timmermans 00c4eb41bb Fixed more ESLint errors. 2020-07-01 11:14:33 +02:00
Keanu Timmermans 44c6dfab1b Fixed ESLint errors. 2020-07-01 10:59:42 +02:00
Keanu Timmermans 49a5b5e3b7 Added serverinfo command. 2020-07-01 10:58:42 +02:00
Keanu Timmermans 3071a4820c Did multiple things.
- Added command handler.
- Added hello command.
- Added utility commands.
- Added lockfile.
2020-06-01 14:45:00 +02:00
Keanu Timmermans c4b252d67e Changed client.login to client.start. 2020-06-01 11:38:15 +02:00
Keanu Timmermans 14da5977b3 Added BotClient. 2020-05-21 20:44:53 +02:00
Keanu Timmermans 350c83df83 Added login to index.js 2020-05-21 20:24:39 +02:00
Keanu Timmermans a4ad951ef9 Added basic structure. 2020-05-21 20:19:28 +02:00