Commit Graph

196 Commits

Author SHA1 Message Date
kenobi c73cd20ccf add test-relevant fallback values for unit tests
Compile the repository / compile (pull_request) Successful in 38s Details
Run unit tests / test (pull_request) Successful in 1m26s Details
2023-10-21 15:05:25 +02:00
kenobi e66aebc88c make top pick retain optional during reroll via env var
Compile the repository / compile (pull_request) Successful in 32s Details
Run unit tests / test (pull_request) Failing after 40s Details
2023-10-21 14:56:33 +02:00
kenobi 599243990e remove console.logs 2023-10-21 14:56:15 +02:00
kenobi eef3a9c358 add missing role to test
Compile the repository / compile (pull_request) Successful in 2m13s Details
Run unit tests / test (pull_request) Failing after 1m10s Details
2023-10-21 14:11:03 +02:00
kenobi 1e912b20ef formatting for package.json
Compile the repository / compile (pull_request) Successful in 1m23s Details
Run unit tests / test (pull_request) Successful in 1m55s Details
2023-08-13 18:35:48 +02:00
kenobi ce4dc81f7d fix incorrect reroll behaviour
now correctly fetches old movies, filters already voted on movies, gets new movies, creates new poll message, deletes old message
2023-08-13 18:35:22 +02:00
kenobi b76df79d2a testcases 2023-08-13 18:33:45 +02:00
kenobi 4e563d57fd fix else branch of memberthreshold 2023-08-13 18:33:45 +02:00
kenobi b6a1e06b03 update default movie env var 2023-08-13 18:14:16 +02:00
kenobi 2ebc7fbdbe restructure docker build a bit
Compile the repository / compile (pull_request) Successful in 1m12s Details
Run unit tests / test (pull_request) Successful in 1m39s Details
2023-08-06 02:37:49 +02:00
kenobi 8ff5aeff03 logging
Compile the repository / compile (pull_request) Successful in 1m21s Details
Run unit tests / test (pull_request) Successful in 1m26s Details
2023-08-06 02:33:28 +02:00
kenobi 1101a84501 imports 2023-08-06 02:33:23 +02:00
kenobi 91ec2ece7e explicit typing 2023-08-06 02:33:17 +02:00
kenobi 5e58765cf4 also enabled NONE_OF_THAT to be handled 2023-08-06 02:32:44 +02:00
kenobi a2adef808f add guildscheduledevents to unit test mock
Compile the repository / compile (pull_request) Successful in 14m58s Details
Run unit tests / test (pull_request) Successful in 4m18s Details
2023-07-17 23:31:00 +02:00
kenobi dc66c277b2 big refactoring of none_of_that handler
extracting, better typing, reduction of complexity
2023-07-17 23:30:48 +02:00
kenobi c022cc32d5 refactor eventId parsing to separate function
Compile the repository / compile (pull_request) Successful in 49s Details
Run unit tests / test (pull_request) Successful in 1m35s Details
prepare for querying discord api for event info instead of parsing via regex
2023-07-17 22:50:24 +02:00
kenobi e763e76413 add new test for eventId parsing 2023-07-17 22:49:12 +02:00
kenobi 137d156981 fix date string in vote message 2023-07-17 22:48:57 +02:00
kenobi fdfe7ce404 move date parsing to separate function
Compile the repository / compile (pull_request) Successful in 1m10s Details
Run unit tests / test (pull_request) Successful in 2m6s Details
2023-07-17 21:30:02 +02:00
kenobi 146848b759 add none of that as expected value to test
Compile the repository / compile (pull_request) Successful in 13s Details
Run unit tests / test (pull_request) Failing after 31s Details
2023-07-17 21:29:47 +02:00
kenobi e54f03292e add a message parser to vote controller
Compile the repository / compile (pull_request) Successful in 1m33s Details
Run unit tests / test (pull_request) Successful in 1m27s Details
parses a vote message line by line to extract
- eventdate
- eventid
- movies
- votes
This depends on the structure of the message to not change substantially.
as such it's quite brittle
2023-07-13 22:47:28 +02:00
kenobi fe45445811 add a test case to check for proper message parsing 2023-07-13 22:46:28 +02:00
kenobi 8f02e11dba add ticket to emoji list 2023-07-13 22:46:14 +02:00
kenobi 878c81bfa7 linting 2023-07-13 22:46:03 +02:00
kenobi ca19168cf4 add early abort message to announce watch party 2023-07-13 22:45:28 +02:00
kenobi e8893646f0 add config values
Compile the repository / compile (pull_request) Successful in 12s Details
Run unit tests / test (pull_request) Successful in 10s Details
2023-07-05 23:22:25 +02:00
kenobi e61b3a7b16 split vote message handling 2023-07-05 23:22:13 +02:00
kenobi 9383cee4a0 scaffolding for poll reroll function 2023-07-05 23:22:01 +02:00
kenobi 0748097a1f refactor datestring function 2023-07-05 23:21:44 +02:00
kenobi ffba737e5a update tsconfig 2023-07-05 22:56:01 +02:00
kenobi 4cd9c771f0 transfer many poll functions to VoteController 2023-07-05 22:55:24 +02:00
kenobi 8c3cf7829b use branded types for messageType determination 2023-07-05 22:54:43 +02:00
kenobi 1a13638ed9 linting
Compile the repository / compile (pull_request) Successful in 1m0s Details
Run unit tests / test (pull_request) Successful in 1m33s Details
2023-06-27 20:34:20 +02:00
kenobi c351e27fdd perform vote message check in reaction handler
Compile the repository / compile (pull_request) Successful in 1m15s Details
Run unit tests / test (pull_request) Successful in 1m26s Details
2023-06-27 20:23:36 +02:00
kenobi 6d3bea169e return on bot reaction 2023-06-27 20:23:22 +02:00
kenobi 3f071c8a4e remove duplicate check for none_of_that vote 2023-06-27 20:22:44 +02:00
kenobi 98d1ca73b5 fix newRequestId function
Compile the repository / compile (pull_request) Successful in 1m15s Details
Run unit tests / test (pull_request) Successful in 1m29s Details
2023-06-27 20:19:42 +02:00
kenobi ee742018e9 adds comment to fetchAnnouncementChannelMessage
Run unit tests / test (pull_request) Successful in 1m54s Details
Compile the repository / compile (pull_request) Successful in 57s Details
2023-06-27 20:08:39 +02:00
kenobi 8ad651c753 prepare unicode representation of emoji for cleaner handling as pure ASCII
Compile the repository / compile (pull_request) Successful in 1m45s Details
Run unit tests / test (pull_request) Successful in 1m34s Details
emoji handling in editors and browsers is iffy, as such a pure ascii code base is easier to handle (imho)
2023-06-26 23:51:14 +02:00
kenobi a4a834ad27 refactor reaction handling
- rename
- externalise handling of none_of_that to vote controller
- base for extensions for more reaction handling
2023-06-26 23:48:52 +02:00
kenobi e8dcfd8340 add votecontroller to consolidate handling of votes 2023-06-26 23:47:43 +02:00
kenobi d9d1d74ef9 WIP: basic handling of adding a reaction to a message and deciding whether to reroll or not
Compile the repository / compile (pull_request) Successful in 1m21s Details
Run unit tests / test (pull_request) Successful in 1m53s Details
2023-06-25 22:49:21 +02:00
kenobi 331ff89060 fetch all message from announcement channel on start
This is necessary because message sent before the bot has started up are not cached and reactions will not be registered.
If the messages are cached manually the reactions will be received and can be processed using the regular event handling
2023-06-25 22:48:55 +02:00
kenobi f6476c609b fetch members of roleId from guild 2023-06-25 22:47:06 +02:00
kenobi 6220268b14 move emotes and reaction constants 2023-06-25 22:46:46 +02:00
kenobi b6034d4fb7 use message identifiers 2023-06-25 02:20:45 +02:00
kenobi ca0a9e3cb8 more message identifiers 2023-06-25 02:20:34 +02:00
kenobi b8a32aab40 stub for reactionhandling
Compile the repository / compile (pull_request) Successful in 1m14s Details
Run unit tests / test (pull_request) Successful in 1m38s Details
2023-06-25 01:57:40 +02:00
kenobi e3e755011d add messageIdentifier helper 2023-06-25 01:57:30 +02:00