From 06f6f84dd70cb5d54654192e180e740a69ff344f Mon Sep 17 00:00:00 2001 From: low-bar Date: Tue, 3 Feb 2026 16:49:38 -0500 Subject: [PATCH 1/5] Documentation Dues --- Documentation/dues.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Documentation/dues.md diff --git a/Documentation/dues.md b/Documentation/dues.md new file mode 100644 index 0000000..fc4aefb --- /dev/null +++ b/Documentation/dues.md @@ -0,0 +1,25 @@ +set-dues.py + +Functions + set_dues_starters, takes in input amount + Checks for admin role, if the user doesn't have admin ends interaction. + Then select rows named dues/$ and changes column named starter in the database to the new amount. If the rows don't exist then it create them with default value then edits the column starter to the input value + + + set_dues_substitutes takes in input amount + Checks for admin role, if the user doesn't have admin ends interaction. + Then select rows named dues/$ and changes column named substitues in the database to the new amount. If the rows don't exist then it create them with default value then edits the column substitues to the input value + + set_dues_non_players takes in input amount + Checks for admin role, if the user doesn't have admin ends interaction. + Then select rows named dues/$ and changes column named substitues in the database to the new amount. If the rows don't exist then it create them with default value then edits the column substitues to the input value + + +generate.py + +Function + generate_dues + Checks for admin role, if the user doesn't have admin ends interaction + Then checks if dues has been set and if there is an active team. + If both are set then create a workbook with sheets for active team games which record the active team's detail and fees in a preset format style + \ No newline at end of file From 893344586e579eac2c9926a17776b936b4a1fe86 Mon Sep 17 00:00:00 2001 From: low-bar Date: Tue, 3 Feb 2026 16:50:58 -0500 Subject: [PATCH 2/5] Documentation Dues --- Documentation/dues.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/dues.md b/Documentation/dues.md index fc4aefb..ed8fb49 100644 --- a/Documentation/dues.md +++ b/Documentation/dues.md @@ -1,6 +1,7 @@ set-dues.py Functions + set_dues_starters, takes in input amount Checks for admin role, if the user doesn't have admin ends interaction. Then select rows named dues/$ and changes column named starter in the database to the new amount. If the rows don't exist then it create them with default value then edits the column starter to the input value @@ -18,6 +19,7 @@ Functions generate.py Function + generate_dues Checks for admin role, if the user doesn't have admin ends interaction Then checks if dues has been set and if there is an active team. From 8f31ec6327667b77d608ac2b06e00f4b9a7ec596 Mon Sep 17 00:00:00 2001 From: low-bar Date: Tue, 3 Feb 2026 16:51:41 -0500 Subject: [PATCH 3/5] Documentation Dues --- Documentation/dues.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/dues.md b/Documentation/dues.md index ed8fb49..5f02c44 100644 --- a/Documentation/dues.md +++ b/Documentation/dues.md @@ -7,11 +7,11 @@ Functions Then select rows named dues/$ and changes column named starter in the database to the new amount. If the rows don't exist then it create them with default value then edits the column starter to the input value - set_dues_substitutes takes in input amount + set_dues_substitutes, takes in input amount Checks for admin role, if the user doesn't have admin ends interaction. Then select rows named dues/$ and changes column named substitues in the database to the new amount. If the rows don't exist then it create them with default value then edits the column substitues to the input value - set_dues_non_players takes in input amount + set_dues_non_players, takes in input amount Checks for admin role, if the user doesn't have admin ends interaction. Then select rows named dues/$ and changes column named substitues in the database to the new amount. If the rows don't exist then it create them with default value then edits the column substitues to the input value @@ -20,7 +20,7 @@ generate.py Function - generate_dues + generate_dues, Checks for admin role, if the user doesn't have admin ends interaction Then checks if dues has been set and if there is an active team. If both are set then create a workbook with sheets for active team games which record the active team's detail and fees in a preset format style From a4113fb1e1b6ee27a09d210d6be9e1ff63637d7a Mon Sep 17 00:00:00 2001 From: kevin Date: Tue, 10 Feb 2026 16:47:57 -0500 Subject: [PATCH 4/5] admin documentation --- Documentation/admin.md | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Documentation/admin.md diff --git a/Documentation/admin.md b/Documentation/admin.md new file mode 100644 index 0000000..4ecc780 --- /dev/null +++ b/Documentation/admin.md @@ -0,0 +1,10 @@ +admin.py + +Function + is_admin, takes in a discord members @ + Gets the server's list of roles with admin and compares if the member has one of them. + + define, takes in user's role + only works for the server owner to set which roles have and are admins + + \ No newline at end of file From 0b00b80648500b29c1068eb8605b5a490f8f4ada Mon Sep 17 00:00:00 2001 From: kevin Date: Thu, 12 Feb 2026 12:08:30 -0500 Subject: [PATCH 5/5] unit test --- Documentation/unit_test.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Documentation/unit_test.md diff --git a/Documentation/unit_test.md b/Documentation/unit_test.md new file mode 100644 index 0000000..6d53317 --- /dev/null +++ b/Documentation/unit_test.md @@ -0,0 +1,12 @@ +for set-dues + run the set command fill with # input, modify the database by adding a player run the command again + delete all dues then run command + delete half of dues then run commmand + test multiple roles with and without admin + test if dicord server admin can use set dues, not admin set from admin.py + test if removed admin can still use command + +for admin.py + add then remove admin + add admin to a role then remove the role server side, check if when readded it still has admin + \ No newline at end of file