a50ac1716f
make return value for role non optional, instead throws on error
Compile the repository / compile (pull_request) Successful in 22s
Run unit tests / test (pull_request) Successful in 19s
2023-11-25 20:05:37 +01:00
ef39c6315d
fix interface name and import
Compile the repository / compile (pull_request) Successful in 19s
Run unit tests / test (pull_request) Successful in 18s
2023-11-25 19:51:02 +01:00
1f372b0aac
fix naming for reaction
2023-11-25 19:50:54 +01:00
d1aacbb3d3
fix incorrect parameter passing
Compile the repository / compile (pull_request) Successful in 16s
Run unit tests / test (pull_request) Successful in 15s
2023-11-22 19:56:20 +01:00
1ae8278fb8
remove unused client
Compile the repository / compile (pull_request) Failing after 18s
Run unit tests / test (pull_request) Successful in 16s
2023-11-22 19:51:35 +01:00
417b24d408
add function to fetch announcement role id
...
Compile the repository / compile (pull_request) Successful in 16s
Run unit tests / test (pull_request) Successful in 14s
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
88061c361c
rename announcement role assign function
Compile the repository / compile (pull_request) Successful in 16s
Run unit tests / test (pull_request) Successful in 15s
2023-11-21 22:42:50 +01:00
f83f54749d
move manage announce roles to role controller
Run unit tests / test (pull_request) Successful in 16s
Compile the repository / compile (pull_request) Successful in 17s
2023-11-21 22:42:00 +01:00
90b0b07080
extend Maybe type to also include void
2023-11-21 22:40:53 +01:00
6d0eaed426
fix incorrect method call
Compile the repository / compile (pull_request) Successful in 17s
Run unit tests / test (pull_request) Successful in 13s
2023-11-20 00:31:16 +01:00
8f320cee5c
implement very basic functionality of role add/rm
Compile the repository / compile (pull_request) Failing after 16s
Run unit tests / test (pull_request) Successful in 14s
2023-11-20 00:27:23 +01:00
016bb243cc
add messageReactionRemove
Compile the repository / compile (pull_request) Successful in 21s
Run unit tests / test (pull_request) Successful in 1m33s
2023-11-20 00:17:28 +01:00
2c8cd96ac7
call vote controller in messageReactionAdd
2023-11-20 00:17:19 +01:00
ba4aefed8e
add a minimal vote controller
2023-11-20 00:17:02 +01:00
8efae12907
add hook
2023-11-20 00:03:45 +01:00
fec0bc31f1
1.1.4
Build a docker image for node-jellyfin-role-bot / build-docker-image (push) Successful in 56s
2023-11-19 20:25:32 +01:00
1bfcaa95f9
Merge pull request 'feat/40-reroll-on-disinterest' ( #54 ) from feat/40-reroll-on-disinterest into master
...
Reviewed-on: #54
2023-11-19 20:24:35 +01:00
fb4ab59dc6
rename emotes to validvoteemotes
Run unit tests / test (pull_request) Successful in 14s
Compile the repository / compile (pull_request) Successful in 16s
2023-11-19 20:22:14 +01:00
6d40930dc1
fix incorrect log regarding update cancellation, fixes return type of function to use Maybe
Compile the repository / compile (pull_request) Successful in 17s
Run unit tests / test (pull_request) Successful in 14s
2023-11-19 20:17:51 +01:00
4e9fe587b0
rename to getOpenPollEvent
Compile the repository / compile (pull_request) Successful in 17s
Run unit tests / test (pull_request) Successful in 13s
2023-11-19 20:13:49 +01:00
03b6a30ffa
remove unnecessary if
Compile the repository / compile (pull_request) Successful in 16s
Run unit tests / test (pull_request) Successful in 18s
2023-11-19 20:11:03 +01:00
7d794a8001
refactor voteInfo to include event instead of eventid and startDate
Run unit tests / test (pull_request) Successful in 16s
Compile the repository / compile (pull_request) Successful in 18s
2023-11-19 20:04:30 +01:00
8df180898e
pad logging level to always be 5 characters
2023-11-19 20:04:06 +01:00
976175242b
reorder close poll and use message identifier
Compile the repository / compile (pull_request) Successful in 28s
Run unit tests / test (pull_request) Successful in 16s
2023-11-19 18:56:39 +01:00
68546b0b50
adjust message identifier in test
2023-11-19 18:56:08 +01:00
1348abbd48
make message identifiers actually work properly with LSP
2023-11-19 18:55:51 +01:00
fce9091114
rename message type union to better reflect its intention
2023-11-19 18:24:33 +01:00
081f3c6201
fix incorrect branded type
2023-11-19 18:24:13 +01:00
ca99987a20
clean up variable and function names
Compile the repository / compile (pull_request) Failing after 16s
Run unit tests / test (pull_request) Failing after 13s
2023-11-19 18:21:51 +01:00
fc64728a78
msg -> message
Compile the repository / compile (pull_request) Successful in 21s
Run unit tests / test (pull_request) Successful in 13s
2023-11-18 18:26:45 +01:00
20da25f2bf
comment filter function
Compile the repository / compile (pull_request) Successful in 39s
Run unit tests / test (pull_request) Successful in 14s
2023-11-18 18:22:11 +01:00
a455fd8ff7
message -> messageText
Compile the repository / compile (pull_request) Successful in 16s
Run unit tests / test (pull_request) Successful in 13s
2023-11-18 18:15:27 +01:00
119343c916
fix comment
2023-11-18 18:15:13 +01:00
296a490e93
rename filter function
2023-11-18 18:14:56 +01:00
66507cb08f
msg -> message
Compile the repository / compile (pull_request) Successful in 16s
Run unit tests / test (pull_request) Successful in 13s
2023-11-18 17:40:50 +01:00
4600820889
move preparation of vote Message sending into vote controller
...
Compile the repository / compile (pull_request) Successful in 17s
Run unit tests / test (pull_request) Successful in 13s
event only needs to supply information, text creation, sending and pinning happens in the vote controller
2023-11-18 17:28:44 +01:00
4a3e8809be
Merge branch 'master' into feat/40-reroll-on-disinterest
Compile the repository / compile (pull_request) Successful in 15s
Run unit tests / test (pull_request) Successful in 13s
2023-11-18 16:46:28 +01:00
690ba697b6
Merge pull request 'Unit Test Setup' ( #58 ) from feat/unit-test-setup into master
...
Reviewed-on: #58
2023-11-18 16:45:58 +01:00
71343d6742
update packagelock
Run unit tests / test (pull_request) Successful in 1m23s
Compile the repository / compile (pull_request) Successful in 59s
2023-11-18 16:42:40 +01:00
3f6e558d39
make logger silent during unit tests, add logging const for more concise requestId/guildid handling
2023-11-18 16:42:27 +01:00
ca259c5f24
update tsconfig
Compile the repository / compile (pull_request) Successful in 1m10s
Run unit tests / test (pull_request) Successful in 2m0s
2023-11-18 16:38:52 +01:00
b1c581ca6e
npm test script
Compile the repository / compile (pull_request) Successful in 1m40s
Run unit tests / test (pull_request) Successful in 1m21s
2023-11-18 16:28:51 +01:00
96189c2392
adjust docker file to enable better build flow for tests
2023-11-18 16:28:40 +01:00
700353cff4
include a test-env file to setup environment variables for unit tests
2023-11-18 16:28:18 +01:00
f705b97804
move testenv to correct location
Run unit tests / test (pull_request) Successful in 1m0s
Compile the repository / compile (pull_request) Successful in 20s
2023-10-24 22:42:03 +02:00
9cdc6e1934
add fake env vars for unit tests
Compile the repository / compile (pull_request) Successful in 39s
Run unit tests / test (pull_request) Failing after 45s
2023-10-24 22:39:57 +02:00
c73cd20ccf
add test-relevant fallback values for unit tests
Compile the repository / compile (pull_request) Successful in 38s
Run unit tests / test (pull_request) Successful in 1m26s
2023-10-21 15:05:25 +02:00
e66aebc88c
make top pick retain optional during reroll via env var
Compile the repository / compile (pull_request) Successful in 32s
Run unit tests / test (pull_request) Failing after 40s
2023-10-21 14:56:33 +02:00
599243990e
remove console.logs
2023-10-21 14:56:15 +02:00
eef3a9c358
add missing role to test
Compile the repository / compile (pull_request) Successful in 2m13s
Run unit tests / test (pull_request) Failing after 1m10s
2023-10-21 14:11:03 +02:00