Commit Graph

163 Commits

Author SHA1 Message Date
Aster Fialla
6d82a067a1 Got rid of unnecessary check for empty message from user (Fluxer doesn't allow this to happen)
Removed export of token
2026-02-24 20:38:37 -05:00
Aster Fialla
15d2f7d79d updated console.error message in database.js 2026-02-24 20:02:32 -05:00
Aster Fialla
ba2274e5be changed commands.js to not have user interaction within the catch 2026-02-24 20:02:11 -05:00
Aster Fialla
de674281f9 make memberCommand exit when error occurs with parseMemberCommand 2026-02-24 19:54:10 -05:00
Aster Fialla
102d694240 Simplify getWebhook to use .find() instead of foreach logic 2026-02-24 19:52:29 -05:00
Aster Fialla
fb878222dd removed unnecessary try/catch from utils 2026-02-24 19:49:59 -05:00
Aster Fialla
a1e007448f changed utils to check for 10MB size not 1MB 2026-02-24 19:47:46 -05:00
Aster Fialla
ad783ae6b7 added dash to commands.js and test to pass 2026-02-24 18:48:59 -05:00
Aster Fialla
664295e4a5 refactored database to not use then/catch 2026-02-24 18:12:43 -05:00
Aster Fialla
cdf5c6e537 tested utils checkImageFormatValidity 2026-02-24 18:04:15 -05:00
Aster Fialla
34cb8f3cdb converted utils.js to not use then/catch 2026-02-24 16:58:56 -05:00
Aster Fialla
8d946ce921 put console.error in commands 2026-02-24 16:58:39 -05:00
Aster Fialla
8919fce34f removed console.log from import helper 2026-02-24 16:56:03 -05:00
Aster Fialla
15a040d1d1 forgot to switch over some tests in bot.test and commands.test 2026-02-24 16:55:51 -05:00
Aster Fialla
6470b223f6 fixed typo in webhookHelper 2026-02-24 16:41:00 -05:00
Aster Fialla
5d8ff9c6c6 one more test in commands.js, and removed console.error 2026-02-24 16:22:38 -05:00
Aster Fialla
2bf218683a edited bot to have top level main function 2026-02-24 16:18:40 -05:00
Aster Fialla
b36a3ae236 refactoring memberHelper.js and tests to not use then/catch 2026-02-24 15:43:43 -05:00
Aster Fialla
c19614b6a1 refactoring commands.js and tests to not use then/catch 2026-02-24 14:50:46 -05:00
Aster Fialla
b4e4e5a951 refactoring bot and tests to not use then/catch 2026-02-24 14:13:48 -05:00
Aster Fialla
5ba5435d46 changed docstring 2026-02-24 13:56:46 -05:00
Aster Fialla
fc58c47b03 refactor webhookHelper and tests to not use then/catch 2026-02-24 13:56:37 -05:00
Aster Fialla
8318d715ad added enum 2026-02-24 12:39:42 -05:00
Aster Fialla
971638bfe3 refactored async/await for import helper to not also use then/catch 2026-02-24 12:39:37 -05:00
Aster Fialla
123aabf650 documentation: adjusted docstrings 2026-02-24 10:37:02 -05:00
Aster Fialla
3c7dfcb72b update enums 2026-02-23 15:55:01 -05:00
Aster Fialla
6937d7b694 made import error not a PDF again 2026-02-23 15:51:12 -05:00
Aster Fialla
e31d9c2881 removed now-unneeded .toJSON() for embeds 2026-02-23 15:20:39 -05:00
Aster Fialla
654338f88e removed duplicate text from importHelper 2026-02-23 15:11:10 -05:00
Aster Fialla
7dfc949b63 separated out commands to be more easily testable and added functionality for aliases 2026-02-23 15:10:48 -05:00
Aster Fialla
a2746a25f9 updated enums 2026-02-23 13:36:40 -05:00
Aster Fialla
daf23b2f5d adding import tests 2026-02-23 13:36:31 -05:00
Aster Fialla
10c145a02d imported env files better 2026-02-23 12:27:25 -05:00
Aster Fialla
6638756a9a replaced reference to [text] in proxy command instructions so it's clearer in contrast to the instructions to type without brackets 2026-02-23 12:01:07 -05:00
Aster Fialla
91e98f2434 fixed bug with memberHelper not processing attached URL 2026-02-23 11:35:01 -05:00
Aster Fialla
c752ee2bf2 Revert "adding debounce" cus it's not working
This reverts commit 1d27db960c.

# Conflicts:
#	src/bot.js
2026-02-23 11:19:26 -05:00
Aster Fialla
bfb5bf9cbb testing bot login, added invoke for login 2026-02-23 10:47:02 -05:00
Aster Fialla
a2bd7b755c testing bot.js handleMessageCreate 2026-02-23 10:38:04 -05:00
Aster Fialla
50c41990ed removed unused argument from bot call to sendMessageAsMember 2026-02-23 08:59:32 -05:00
Aster Fialla
1d27db960c adding debounce 2026-02-23 08:47:27 -05:00
Aster Fialla
264c3e19fd removing some unused imports in messageHelper 2026-02-23 08:44:50 -05:00
Aster Fialla
0a1652f243 updated docstrings 2026-02-23 08:02:30 -05:00
Aster Fialla
71c8736a38 added to docstring 2026-02-23 00:18:57 -05:00
Aster Fialla
d9530a2ccf structure and test revamp for memberHelper 2026-02-23 00:18:14 -05:00
Aster Fialla
be24034d48 updating tests and memberHelper to try and make parseMemberCommand less bloated/broken (not working ATM) 2026-02-22 21:40:42 -05:00
Aster Fialla
c3e7bf4433 updated enums 2026-02-22 18:48:52 -05:00
Aster Fialla
7dae9f52b1 fixed call to getMemberInfo to not include authorId 2026-02-22 18:32:47 -05:00
Aster Fialla
630ce7888c adjusted parsing logic to not try and call member when none exists (due to "new" command) 2026-02-22 18:06:18 -05:00
Aster Fialla
b88b9252be forgot to import enums into utils 2026-02-22 17:09:02 -05:00
Aster Fialla
fa4ca779ee accidental error with memberHelper not allowing pf;member fixed 2026-02-22 11:52:51 -05:00