Commit Graph

220 Commits

Author SHA1 Message Date
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
kenobi 5a6c66cb3e export newRequestId from logger 2023-06-25 01:57:14 +02:00
kenobi 0d3c62c6ad Merge pull request 'feat/formatting' (#53) from feat/formatting into master
Reviewed-on: #53
2023-06-24 22:55:42 +02:00
kenobi 5816db48e6 Merge branch 'master' into feat/formatting
Compile the repository / compile (pull_request) Successful in 1m16s Details
Run unit tests / test (pull_request) Successful in 1m33s Details
2023-06-24 21:55:51 +02:00
mightypanders 66f843b399 format more files
Compile the repository / compile (pull_request) Successful in 1m12s Details
2023-06-24 21:09:56 +02:00
mightypanders d82a7cffd2 same config for all
Compile the repository / compile (pull_request) Successful in 6s Details
2023-06-24 21:07:41 +02:00
mightypanders 8a06a661fa adjust some files to new formatting
Compile the repository / compile (pull_request) Successful in 1m28s Details
2023-06-24 21:05:43 +02:00
mightypanders 4084f675cd change to tab indents 2023-06-24 21:05:33 +02:00
kenobi 3bd26a9d6c Merge pull request 'feat/testing' (#52) from feat/testing into master
Reviewed-on: #52
2023-06-24 20:59:39 +02:00
mightypanders e7b21fa658 apply editorconfig to ts files
Compile the repository / compile (pull_request) Successful in 1m7s Details
2023-06-24 20:58:41 +02:00
mightypanders 2d32f9b680 format many files 2023-06-24 20:56:58 +02:00
mightypanders 5503aa8713 add editorconfig 2023-06-24 20:56:22 +02:00
mightypanders 25bb676fda readd compile
Compile the repository / compile (pull_request) Successful in 10s Details
Run unit tests / test (pull_request) Successful in 8s Details
2023-06-24 20:37:59 +02:00
mightypanders 9f5abb8a90 Merge branch 'master' into feat/testing 2023-06-24 20:37:08 +02:00
kenobi 0e67252976 Merge pull request 'use bash magic to get an env var from the package.json' (#51) from feat/build-versioned-image into master
Reviewed-on: #51
2023-06-24 20:35:23 +02:00
mightypanders 37b798818c handle timezone correctly in docker build
Run unit tests / test (pull_request) Successful in 1m53s Details
Compile the repository / compile (pull_request) Successful in 1m10s Details
2023-06-24 20:31:37 +02:00
mightypanders af414d0bad rename human facing name for test job
Compile the repository / compile (pull_request) Successful in 7s Details
Run unit tests / test (pull_request) Successful in 7s Details
2023-06-24 20:17:04 +02:00
mightypanders c32434a7eb rename test job
Compile the repository / compile (pull_request) Successful in 9s Details
Compile the repository / test (pull_request) Successful in 9s Details
2023-06-24 20:16:03 +02:00
mightypanders c133570d8c update other workflows to use staged builds
Compile the repository / compile (pull_request) Successful in 8s Details
2023-06-24 20:11:39 +02:00
mightypanders 65cdee36e9 update testcase
Compile the repository / compile (pull_request) Successful in 1m58s Details
2023-06-24 20:09:52 +02:00
mightypanders 6b0e84669a update dockerfile to support test stage 2023-06-24 20:09:09 +02:00
mightypanders dd72f8e165 add automatic jest test in docker build to workflows 2023-06-24 20:09:00 +02:00
mightypanders a6f19ccd2b add date test (WIP) 2023-06-24 19:56:49 +02:00
mightypanders c39f9c6ee1 add first passing test 2023-06-24 19:56:30 +02:00
mightypanders f41194ba71 add base jest setup 2023-06-24 19:11:12 +02:00
mightypanders fa49dc0f76 use bash magic to get an env var from the package.json
Compile the repository / compile (pull_request) Successful in 7s Details
this is shamelessly stolen from work
2023-06-24 02:14:53 +02:00
Sammy e52e845851 1.1.3
Build a docker image for node-jellyfin-role-bot / build-docker-image (push) Successful in 1m59s Details
2023-06-23 23:46:52 +02:00