Commit Graph

167 Commits

Author SHA1 Message Date
8ec327a149 Added workflow_dispatch
All checks were successful
nodeJS remote worker / build (pull_request) Successful in 48s
This allows one to run the workflow when they want

Signed-off-by: Aster <code@asterfialla.com>
2026-03-03 04:25:01 +11:00
ce57d15b29 Update .gitea/workflows/build-dev.yml
All checks were successful
nodeJS remote worker / build (push) Successful in 45s
2026-03-02 15:01:33 +11:00
2114362dbb Update .gitea/workflows/sync-from-mirror.yaml
All checks were successful
nodeJS remote worker / build (push) Successful in 50s
2026-03-02 14:59:57 +11:00
d1c1754212 Update .gitea/workflows/build-dev.yml
All checks were successful
nodeJS remote worker / build (push) Successful in 53s
2026-03-02 14:53:34 +11:00
7d438b1492 Update .gitea/workflows/sync-from-mirror.yaml
All checks were successful
nodeJS remote worker / build (push) Successful in 43s
2026-02-28 17:50:17 +11:00
c16b397cfa Add .gitea/workflows/sync-from-mirror.yaml
Some checks failed
nodeJS remote worker / build (push) Has been cancelled
Auto-Sync from Mirror / sync (push) Failing after 6s
2026-02-28 17:36:49 +11:00
e862d7c178 Update compose.yaml
All checks were successful
nodeJS remote worker / build (push) Successful in 46s
2026-02-28 17:21:56 +11:00
e40c1266c2 Update .gitea/workflows/build-main.yml
All checks were successful
nodeJS remote worker / build (push) Successful in 45s
2026-02-28 17:20:30 +11:00
b8e155bcc5 Update .gitea/workflows/build-main.yml
Some checks failed
nodeJS remote worker / build (push) Failing after 43s
2026-02-28 17:16:53 +11:00
2551ab4343 Update .gitea/workflows/build-dev.yml
All checks were successful
nodeJS remote worker / build (push) Successful in 47s
2026-02-28 17:16:30 +11:00
135962267d Update .gitea/workflows/build-dev.yml
All checks were successful
nodeJS remote worker / build (push) Successful in 44s
2026-02-28 17:08:18 +11:00
24802f1b75 Update .gitea/workflows/build-main.yml
All checks were successful
nodeJS remote worker / build (push) Successful in 42s
2026-02-28 17:01:19 +11:00
dbdb9fc38c Update .gitea/workflows/build-dev.yml
Some checks failed
nodeJS remote worker / build (push) Has been cancelled
2026-02-28 17:00:56 +11:00
a3e0aa73b4 Update .gitea/workflows/build-dev.yml
Some checks failed
nodeJS remote worker / build (push) Failing after 43s
2026-02-27 13:26:23 +11:00
690344934b merge upstream
All checks were successful
nodeJS remote worker / build (push) Successful in 45s
2026-02-27 12:31:38 +11:00
bf4f55c91b Upload files to ".gitea/workflows"
All checks were successful
nodeJS remote worker / build (push) Successful in 46s
2026-02-26 14:36:36 +11:00
df80eca0ec refactor: Removing then/catch from async/await calls (#22)
* refactored async/await for import helper to not also use then/catch

* added enum

* refactor webhookHelper and tests to not use then/catch

* changed docstring

* refactoring bot and tests to not use then/catch

* refactoring commands.js and tests to not use then/catch

* refactoring memberHelper.js and tests to not use then/catch

* removing then/catch from messageHelper.test.js

* fixed set up for commands tests

* edited bot to have top level main function

* one more test in commands.js, and removed console.error

* fixed typo in webhookHelper

* forgot to switch over some tests in bot.test and commands.test

* removed console.log from import helper

* put console.error in commands

* converted utils.js to not use then/catch

* tested utils checkImageFormatValidity

* removed jest-fetch-mock since it turns out I was just manually mocking it anyway

* refactored database to not use then/catch

* added dash to commands.js and test to pass

* added the remaining webhook tests

* changed utils to check for 10MB size not 1MB

* removed unnecessary try/catch from utils

* Simplify getWebhook to use .find() instead of foreach logic

* make memberCommand exit when error occurs with parseMemberCommand

* changed commands.js to not have user interaction within the catch

* updated console.error message in database.js

* made importHelper mock throw error instead of "resolve" error

* replaced "pk;" with "pf;" in test

* Got rid of unnecessary check for empty message from user (Fluxer doesn't allow this to happen)

Removed export of token

* getAllMembersInfo checks for fields.length

* added default case to memberCommandHandler to throw error if command is not recognized

* reversed check for valid proxy (was returning valid if the proxy existed and invalid if it didn't)

* pushes e.message instead of full error object to errors array in importHelper

* adjusted tests to properly use mockRejectedValue for async rejections

* changed getAllMembersInfo map to say `index` not `name` as it actually gets the index of a member and then the member object

* adjusted importHelper to properly test throwing of aggregate error

* revamped setting of expiration warning (moved to utils and changed logic, wrote tests)

---------

Co-authored-by: Aster Fialla <asterfialla@gmail.com>
2026-02-25 19:30:39 -05:00
b3566010a2 Update .gitea/workflows/build-main.yml
All checks were successful
nodeJS remote worker / build (push) Successful in 47s
2026-02-26 00:28:41 +11:00
0eee2988ce update build-main with SSH compose deploy
Some checks failed
nodeJS remote worker / build (push) Failing after 44s
2026-02-26 00:20:49 +11:00
a86260cc4a Update .gitea/workflows/build-main.yml
All checks were successful
nodeJS remote worker / build (push) Successful in 45s
2026-02-26 00:15:15 +11:00
506e3ef9dd Update .gitea/workflows/build-main.yml
Some checks failed
nodeJS remote worker / build (push) Failing after 18s
2026-02-26 00:12:08 +11:00
6a33fb592a Update .gitea/workflows/build-main.yml
Some checks failed
nodeJS remote worker / build (push) Has been cancelled
2026-02-26 00:11:21 +11:00
2f255cefd1 Update .gitea/workflows/build-main.yml
Some checks failed
nodeJS remote worker / build (push) Failing after 18s
2026-02-26 00:09:48 +11:00
c54016de77 Delete .gitea/workflows/test-workflow.yaml
Some checks failed
nodeJS remote worker / build (push) Failing after 19s
2026-02-26 00:08:03 +11:00
31da15eaeb Update .gitea/workflows/build.yml
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled
nodeJS remote worker / build (push) Failing after 19s
2026-02-26 00:07:40 +11:00
43f4302dbc add build workflow
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled
nodeJS remote worker / build (push) Failing after 33s
2026-02-25 23:55:42 +11:00
af3da44946 test
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 41s
2026-02-25 23:34:29 +11:00
af57e2e6a3 add workflows 2026-02-25 23:21:13 +11:00
77191566e3 initial setup 2026-02-25 23:18:48 +11: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
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
adcb05a38b Create LICENSE
Add the peer production license as license
2026-02-22 11:57:12 -05:00
Aster Fialla
db3c588745 updated tests 2026-02-20 11:36:41 -05:00
Aster Fialla
56d7f7d1fa call getMemberCommandInfo in parseMemberCommand 2026-02-20 11:33:16 -05:00
Aster Fialla
8f6ae668b0 update getMemberCommandInfo
# Conflicts:
#	src/helpers/memberHelper.js
2026-02-20 11:31:54 -05:00
Aster Fialla
211a705f31 update enums 2026-02-20 11:29:28 -05:00
Aster Fialla
69c242350f updated readme 2026-02-20 10:01:56 -05:00
8fc590c062 feat: add tests and other such features (#3)
* converted import syntax to ES modules

removed unused methods

* got test sort of working (jest set up is not crashing but also not mocking correctly)

* adjusted beforeeach/beforeall so more pass

* more correct test setup

* converted import syntax to commonJS

removed unused methods

* got test sort of working (jest set up is not crashing but also not mocking correctly)

* adjusted beforeeach/beforeall so more pass

* more correct test setup

* more correct dockerfile and compose.yaml

* Revert "converted import syntax to commonJS"

This reverts commit 5ab0d62b

* updated jest to sort of work with es6

* separating out enum return from method return

* mostly working except for the weirdest error

* nevermind it wasn't actually working, gonna move on for now

* added babel to convert es modules to cjs

* finally figured out issue with tests (referencing the method directly in the test.each calls the real method not the mock in beforeEach())

* setup fixed more

* added error handling parseMemberCommand test

* renamed db to database
more tests and fixing logic for memberhelper

* upgraded fluxer.js

* moved import to helpers folder

* moved import to helpers folder

* more tests for member helper

* think i fixed weird error with webhook sending error when a user has no members

* simplified sendMessageAsAttachment

* added return to addFullMember so that addNewMember can reference it properly in strings

* test setup for messagehelper and webhookhelper

* readded line i shouldn't have removed in sendMessageAsMember

* fixed test and logic

* added test for memberHelper

* updated sendMessageAsAttachment to returnBufferFromText and updated commands/webhookHelper accordingly

* added tests for parseProxyTags and updated logic

* added "return" so tests dont terminate on failure and deleted env.jest

* finished tests for messageHelper!

* more cases for messageHelper just in case

* updating docstring for messageHelper parseProxyTags

* more tests for webhookhelper

* deleted extra file added during merge

* removed confusing brackets from enum docs

* finally mocking correctly

* adding more cases to messageHelper tests

* updating enums

* removed error response when proxy is sent without content

* , updated tests for webhookHelper and removed error response when proxy is sent without content

* added debounce to count guilds properly

* added todo note

* added tests for updateDisplayName

* edited help message trigger for updatePropic

* update message helper test to include space case

* update bot to suppress errors from API

* fixed bug for import not sending help text, added help text if you type a unrecognized command

* updated to be enum

* updated member helper and tests

* edit enums, tweak import content command

* removed unnecessary await and console.log

* made it easier to make a member

* added nicer error listing to importHelper

* updated documentation

* Merge branch 'main' of https://github.com/pieartsy/PluralFlux into add-tests

---------

Co-authored-by: Aster Fialla <asterfialla@gmail.com>
2026-02-19 21:45:10 -05:00
Aster Fialla
d24bcc8438 Added package-lock.json 2026-02-19 21:43:38 -05:00
pieartsy
4f2e893491 Create node.js.yml
Workflow for node.js (hopefully works)
2026-02-17 11:41:30 -05:00
pieartsy
74cab4f91f Update README.md 2026-02-17 11:15:34 -05:00
pieartsy
1661dfd637 Create FUNDING.yml
Added github sponsorship.
2026-02-17 11:14:54 -05:00
Aster Fialla
055ecdf20d removed unneeded code 2026-02-16 13:43:34 -05:00
Aster Fialla
51ada567ce made bot search and query lowercase instead of only applying to uppercase 2026-02-16 13:30:57 -05:00
Aster Fialla
be5505b03c added --help functionality to import command 2026-02-16 13:15:28 -05:00
Aster Fialla
07d4e735eb changed parseProxyTags to filter proxy differently. changed conditional in sendMessageAsMember because obj will never not exist 2026-02-16 12:48:26 -05:00
Aster Fialla
8b709b75ce updated readme and enums 2026-02-16 12:31:44 -05:00
Aster Fialla
6cd34e9c68 adjusted webhook helper to not query twice for member.
adjusted proxy message to just reply to message w/ attachments with "Attachment sent by" instead of sending error message
2026-02-16 12:30:46 -05:00