Commit Graph

255 Commits

Author SHA1 Message Date
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
a0f62763af Merge branch 'main' of https://github.com/pieartsy/PluralFlux into refactor-async-await
# Conflicts:
#	src/helpers/importHelper.js
#	tests/helpers/importHelper.test.js
2026-02-24 12:43:52 -05:00
7fead5e3d7 feat: Add unit tests (#21)
Tests are mostly complete (though some are failing -- to be fixed in the
async/await refactor.

Also refactored, fixed bugs found while testing, and added ability to
type `pf;m` instead of `pf;member`.

---------

Co-authored-by: Aster Fialla <asterfialla@gmail.com>
2026-02-24 12:42:23 -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
428310dfad Delete .github/workflows/node.js.yml (#20)
Since we're moving to local DevOps, this is no longer required. Also it
was broken.
2026-02-24 09:30:27 -05:00
dc0de4b092 Update README.md
added LLM note
2026-02-24 09:23:07 -05:00
6898e3142c Create CONTRIBUTING.md 2026-02-24 09:16:55 -05:00
Aster Fialla
3c7dfcb72b update enums 2026-02-23 15:55:01 -05:00
Aster Fialla
9059c63747 mostly finished command tests 2026-02-23 15:54:45 -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
2a2de70b46 starting commands tests 2026-02-23 15:10:57 -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
bb99ee7ef1 structure for utils test edited a bit 2026-02-23 13:38:38 -05:00
Aster Fialla
088eaaa654 package.lock 2026-02-23 13:36:58 -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
813e893afb more accurate framework for utils tests 2026-02-23 12:30:40 -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
df60ec489b updated package.json 2026-02-23 11:56:35 -05:00
Aster Fialla
79f0f19733 adjusted bot.test mock 2026-02-23 11:50:50 -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
0f65db2d42 add frameworks for other tests 2026-02-23 09:00:48 -05:00
Aster Fialla
da79db856a removed unneeded imports from messageHelper tests 2026-02-23 08:59:56 -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
580a0cb42e renaming test interpolation to be less silly 2026-02-23 07:53:03 -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
72ec047f48 test frame for utils 2026-02-22 21:40:53 -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
79cfc1563d add license 2026-02-22 12:03:44 -05:00
adcb05a38b Create LICENSE
Add the peer production license as license
2026-02-22 11:57:12 -05:00
Aster Fialla
fa4ca779ee accidental error with memberHelper not allowing pf;member fixed 2026-02-22 11:52:51 -05:00
Aster Fialla
eb7340faf7 finished relevant tests for memberHelper 2026-02-22 11:24:57 -05:00
Aster Fialla
d4adbc028a typo not importing utils right 2026-02-22 09:54:01 -05:00