kenobi
6d0eaed426
fix incorrect method call
Compile the repository / compile (pull_request) Successful in 17s
Details
Run unit tests / test (pull_request) Successful in 13s
Details
2023-11-20 00:31:16 +01:00
kenobi
016bb243cc
add messageReactionRemove
Compile the repository / compile (pull_request) Successful in 21s
Details
Run unit tests / test (pull_request) Successful in 1m33s
Details
2023-11-20 00:17:28 +01:00
kenobi
2c8cd96ac7
call vote controller in messageReactionAdd
2023-11-20 00:17:19 +01:00
kenobi
8efae12907
add hook
2023-11-20 00:03:45 +01:00
kenobi
fb4ab59dc6
rename emotes to validvoteemotes
Run unit tests / test (pull_request) Successful in 14s
Details
Compile the repository / compile (pull_request) Successful in 16s
Details
2023-11-19 20:22:14 +01:00
kenobi
03b6a30ffa
remove unnecessary if
Compile the repository / compile (pull_request) Successful in 16s
Details
Run unit tests / test (pull_request) Successful in 18s
Details
2023-11-19 20:11:03 +01:00
kenobi
4600820889
move preparation of vote Message sending into vote controller
...
Compile the repository / compile (pull_request) Successful in 17s
Details
Run unit tests / test (pull_request) Successful in 13s
Details
event only needs to supply information, text creation, sending and pinning happens in the vote controller
2023-11-18 17:28:44 +01:00
kenobi
599243990e
remove console.logs
2023-10-21 14:56:15 +02:00
kenobi
5e58765cf4
also enabled NONE_OF_THAT to be handled
2023-08-06 02:32:44 +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
ca19168cf4
add early abort message to announce watch party
2023-07-13 22:45:28 +02:00
kenobi
e61b3a7b16
split vote message handling
2023-07-05 23:22:13 +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
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
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
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
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
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
mightypanders
66f843b399
format more files
Compile the repository / compile (pull_request) Successful in 1m12s
Details
2023-06-24 21:09:56 +02:00
mightypanders
2d32f9b680
format many files
2023-06-24 20:56:58 +02:00
Sammy
45d87275bf
prevent announcement when description contains !private
Compile the repository / compile (pull_request) Successful in 1m43s
Details
2023-06-23 15:56:36 +02:00
Sammy
31e440434e
properly clean up wp announcements without event only
2023-06-23 15:51:48 +02:00
Sammy
5b98c9bf2f
Rename event files to specific case
...
We can add multiple eventhandlers per eventname. To avoid confusion and large files and to improve concise file names the event files were renamed
2023-06-23 14:37:41 +02:00
Sammy
e8c58d5ff8
add event box to create message
2023-06-22 19:35:47 +02:00
Sammy
8569a3e1e6
Create option "none of that" in voting
Compile the repository / compile (pull_request) Successful in 1m19s
Details
2023-06-22 18:53:29 +02:00
Sammy
07849d331a
move scheduling of pollclose task to startup
...
Build a docker image for node-jellyfin-role-bot / build-docker-image (push) Successful in 1m37s
Details
Also moved check function to closepoll.ts
2023-06-17 12:00:14 +02:00
Sammy
d6300e8bec
improve movie name resolving
...
Build a docker image for node-jellyfin-role-bot / build-docker-image (push) Successful in 1m55s
Details
When creating the poll the bot will now only request movie names instead of movies
This improves the errorhandling because the movie names cannot be null
Also the movieName function filters empty movienames and will guarantee the requested number of names
2023-06-16 20:15:36 +02:00
Sammy
71ffc6ba50
use yavin to get random movies
2023-06-15 22:33:22 +02:00
Sammy
d22e38efbf
fix build
2023-06-15 22:02:37 +02:00
Sammy
5b99c843b4
Fix PR and linting issues
2023-06-15 21:56:15 +02:00
Sammy
9420eb4366
Change announcements
...
All announcements but initial will be deleted upon event end.
Vote announcement will be deleted upon vote end
Vote and vote end announcement now contain date and time
2023-06-14 22:24:39 +02:00
Sammy
220f9dc8ef
undo fetching role to get roleID
...
We already have the role id?!?!?
2023-06-14 19:45:33 +02:00
Sammy
198a25d145
ping watch role when voting starts and closes
2023-06-13 23:15:03 +02:00
Sammy
fdc0fc47b5
removed unnecessary guildId: from logger calls
2023-06-12 20:36:05 +02:00
Sammy
c0369fcb49
Fetch announcement channel at server start
2023-06-12 20:27:54 +02:00
Sammy
40d220ed7b
refactor: use date-fns for date comparison
2023-06-12 19:43:33 +02:00
Sammy
1ee55f995c
minor resilience improvement and formatting
...
in closepoll.ts was an unsafe arrays usage without checking the bounds
2023-06-11 09:01:25 +02:00
Sammy
0d5c3d30a9
Fix loggers
...
Some logger messages were missing requestId and guildId
2023-06-10 22:58:00 +02:00
Sammy
c2d8838cf8
polls will be closed automatically 2 days before event start
2023-06-10 22:53:11 +02:00
Sammy
c8fa89ae63
Add command to close the poll and update the event
2023-06-10 17:27:59 +02:00
Sammy
2707f7d73b
Add automatic creation of vote message with random movies
...
When a !nextwp event is created the bot will fetch random movies and create a message that people can vote on
2023-06-10 14:23:10 +02:00
Sammy
1e1ab93667
Fix edgecases for automatic user creation
...
- make eventdescription !wp case insensitive
- Create accounts for users in channel without subscription when event starts
- Make sent messages caused by VoiceState event dependant on creation result (created, enabled)
- Create tmp user if normal user exists but is disabled
2023-06-09 23:56:45 +02:00
mightypanders
84a0d7bbe1
turn all slash command replies into an ephemeral message
...
Setting ephemeral has to happen in an initial reply (reply() or
deferReply()) to set the mode for all replies in this 'thread'. Once the
ephemeral state of a message has been set it can not be changed. If you
want to send a visible message after an ephemeral message it has to be
new message. See https://discordjs.guide/slash-commands/response-methods.html#ephemeral-responses
2023-06-06 23:27:41 +02:00
Sammy
64c5874249
further handling of automatic user adding/deleting
2023-06-04 16:35:43 +02:00
Sammy
892562cd0b
Automatically create and disable users based on watch event
2023-06-04 15:02:03 +02:00