kenobi
417b24d408
add function to fetch announcement role id
...
Compile the repository / compile (pull_request) Successful in 16s
Details
Run unit tests / test (pull_request) Successful in 14s
Details
intended flow: use id fetch function to get role for current guild, use role id to fetch role from discord role cache,
use role in intended use case
currently the role id is hardcoded, needs to be read from some sort of cache which persists the ids in config file
needs to be differentiated by guild id and role type
could be the target of a user configurable frontend in the future
2023-11-21 23:33:25 +01:00
kenobi
88061c361c
rename announcement role assign function
Compile the repository / compile (pull_request) Successful in 16s
Details
Run unit tests / test (pull_request) Successful in 15s
Details
2023-11-21 22:42:50 +01:00
kenobi
f83f54749d
move manage announce roles to role controller
Run unit tests / test (pull_request) Successful in 16s
Details
Compile the repository / compile (pull_request) Successful in 17s
Details
2023-11-21 22:42:00 +01:00
kenobi
8f320cee5c
implement very basic functionality of role add/rm
Compile the repository / compile (pull_request) Failing after 16s
Details
Run unit tests / test (pull_request) Successful in 14s
Details
2023-11-20 00:27:23 +01:00
kenobi
ba4aefed8e
add a minimal vote controller
2023-11-20 00:17:02 +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
6d40930dc1
fix incorrect log regarding update cancellation, fixes return type of function to use Maybe
Compile the repository / compile (pull_request) Successful in 17s
Details
Run unit tests / test (pull_request) Successful in 14s
Details
2023-11-19 20:17:51 +01:00
kenobi
4e9fe587b0
rename to getOpenPollEvent
Compile the repository / compile (pull_request) Successful in 17s
Details
Run unit tests / test (pull_request) Successful in 13s
Details
2023-11-19 20:13:49 +01:00
kenobi
7d794a8001
refactor voteInfo to include event instead of eventid and startDate
Run unit tests / test (pull_request) Successful in 16s
Details
Compile the repository / compile (pull_request) Successful in 18s
Details
2023-11-19 20:04:30 +01:00
kenobi
976175242b
reorder close poll and use message identifier
Compile the repository / compile (pull_request) Successful in 28s
Details
Run unit tests / test (pull_request) Successful in 16s
Details
2023-11-19 18:56:39 +01:00
kenobi
1348abbd48
make message identifiers actually work properly with LSP
2023-11-19 18:55:51 +01:00
kenobi
fce9091114
rename message type union to better reflect its intention
2023-11-19 18:24:33 +01:00
kenobi
081f3c6201
fix incorrect branded type
2023-11-19 18:24:13 +01:00
kenobi
ca99987a20
clean up variable and function names
Compile the repository / compile (pull_request) Failing after 16s
Details
Run unit tests / test (pull_request) Failing after 13s
Details
2023-11-19 18:21:51 +01:00
kenobi
fc64728a78
msg -> message
Compile the repository / compile (pull_request) Successful in 21s
Details
Run unit tests / test (pull_request) Successful in 13s
Details
2023-11-18 18:26:45 +01:00
kenobi
20da25f2bf
comment filter function
Compile the repository / compile (pull_request) Successful in 39s
Details
Run unit tests / test (pull_request) Successful in 14s
Details
2023-11-18 18:22:11 +01:00
kenobi
a455fd8ff7
message -> messageText
Compile the repository / compile (pull_request) Successful in 16s
Details
Run unit tests / test (pull_request) Successful in 13s
Details
2023-11-18 18:15:27 +01:00
kenobi
119343c916
fix comment
2023-11-18 18:15:13 +01:00
kenobi
296a490e93
rename filter function
2023-11-18 18:14:56 +01:00
kenobi
66507cb08f
msg -> message
Compile the repository / compile (pull_request) Successful in 16s
Details
Run unit tests / test (pull_request) Successful in 13s
Details
2023-11-18 17:40:50 +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
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
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
4e563d57fd
fix else branch of memberthreshold
2023-08-13 18:33:45 +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
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
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
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
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
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
3f071c8a4e
remove duplicate check for none_of_that vote
2023-06-27 20:22:44 +02:00
kenobi
e8dcfd8340
add votecontroller to consolidate handling of votes
2023-06-26 23:47:43 +02:00
kenobi
f6476c609b
fetch members of roleId from guild
2023-06-25 22:47:06 +02:00
kenobi
ca0a9e3cb8
more message identifiers
2023-06-25 02:20:34 +02:00
kenobi
e3e755011d
add messageIdentifier helper
2023-06-25 01:57:30 +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
61544feaba
Fix stupid timezone issues
2023-06-23 23:46:11 +02:00
Sammy
3a5ea5d4ff
improve message clarity when no start date in event found
Compile the repository / compile (pull_request) Successful in 4m8s
Details
2023-06-23 19:30:17 +02:00
Sammy
31e440434e
properly clean up wp announcements without event only
2023-06-23 15:51:48 +02:00
Sammy
5b99c843b4
Fix PR and linting issues
2023-06-15 21:56:15 +02:00
mightypanders
3294d9ca77
make jf roles configurable via env vars
2023-06-08 17:10:06 +02:00