1
0
Commit Graph

71 Commits

Author SHA1 Message Date
e0b72f3b70 Add rewardCost to RedemptionMessage interface 2022-01-07 16:39:18 +01:00
ab0749cc09 Add regedit package 2022-01-07 15:46:32 +01:00
5f5a90be7b 🔧 Remove "files" property 2022-01-07 14:05:31 +01:00
d538491e07 ♻️ Extract code from onRedemption to functions 2022-01-07 13:13:10 +01:00
6d95a754cc ♻️ Throw error in actions in favour of undefined returns 2022-01-07 12:58:19 +01:00
916d430a4d ♻️ Create getRedemptionHandlerFromRewardId function
Returns the reward redeption handler function given a reward id
2022-01-07 12:08:17 +01:00
ba3708b65c 🔀 Merge branch 'master' of git.alexbcberio.eus:alexbcberio/twitch-channel-redemptions 2022-01-06 18:23:47 +01:00
044d697b15 🔧 Add tsconfig and fix some TS errors 2022-01-06 18:22:28 +01:00
54bae2f986 🔧 Add tsconfig and fix some TS errors 2022-01-06 18:21:16 +01:00
931cc57b1b 🚨 Fix most of the linting error and warnings 2022-01-06 18:15:56 +01:00
0a18826978 🔧 Add eslint/prettier configuration files 2022-01-06 15:02:26 +01:00
d6093212a9 Add eslint and prettier 2022-01-06 14:59:49 +01:00
2978434f2c 🔨 Rename dev script to start:dev 2022-01-06 14:53:51 +01:00
9ea810c4a5 📝 Update README
tokens.json file format has changed
2022-01-06 14:26:36 +01:00
1cd43db83c 🏷️ Update reward ids 2022-01-06 03:23:15 +01:00
afd90a02c0 Small check to keep some rewards in the queue 2022-01-06 03:22:29 +01:00
06d2827ace Complete/cancel reward redemption automatically 2022-01-06 03:08:43 +01:00
2076089bb6 Add command to create channel point rewards 2022-01-06 02:49:46 +01:00
ab8786b68b Handle chat message commands (only for broadcaster) 2022-01-06 02:49:09 +01:00
1f78fdda64 ♻️ Rename createReward first argument to userId 2022-01-06 02:47:07 +01:00
7a451aa67c Create helpers to manage rewards status 2022-01-06 02:05:23 +01:00
0974a6a7af 👽️ Bug has been fixed on the library 2022-01-06 01:34:02 +01:00
27ffd037f1 Do not add prefix to chat messages 2022-01-06 01:29:01 +01:00
1ece2ea502 🐛 Remove randojs script import 2022-01-06 01:28:19 +01:00
0832c5ad6b 🐛 Remove calls to broadcast
Broadcasting is handled in "onRedemption" listener
2022-01-06 01:27:39 +01:00
213fb9d390 ⬆️ Upgrade dependencies and migrate to @twurple/* 2022-01-06 01:16:49 +01:00
f1ea2a1b64 Add prefix and prevent exceeding message length 2022-01-06 00:44:01 +01:00
67b35f7ed0 Implement definitive VIP obtention and steal 2022-01-06 00:38:10 +01:00
2ba8683204 ♻️ Create save directory only at start 2022-01-06 00:36:15 +01:00
4c5b00fe83 Add vipUsers collection 2022-01-05 23:36:16 +01:00
11bcdb2eda ♻️ Rename saveScheduledActions to save 2022-01-05 23:26:53 +01:00
8d1312d56a 🚚 Rename to miniDb 2022-01-05 23:17:46 +01:00
e328a5b668 Move scheduled actions save path and create directory if it does not exist 2022-01-05 22:37:36 +01:00
fa283ef48e 🎨 Convert rewardId to RedemptionIds enum key name 2022-01-05 21:57:22 +01:00
14584932ff 🎨 Improve handling of redemptions 2022-01-05 21:53:58 +01:00
5d20cce62f ♻️ Extract highlight message logic to server 2022-01-05 20:05:18 +01:00
e3dfe80cc4 ♻️ Extract hidrate logic to server 2022-01-05 19:50:42 +01:00
190d7f7d26 💥 Remove try/catch from timeout
Call to this method should now be surrounded by try catch
2022-01-05 19:40:28 +01:00
1b48261b94 ♻️ Extract timeout friend logic to server 2022-01-05 19:37:54 +01:00
324f3faec2 🥅 Try/catch audio.play 2022-01-05 19:14:35 +01:00
2edb4481f8 ♻️ Extract roussian roulette logic to server 2022-01-05 19:12:08 +01:00
05a93ba316 ♻️ Cleaned lots of code and change getvip implementation
getVip is no longer time limited, it will remove it once a limit of
vip users is reached (to be implemented)
2022-01-05 18:13:59 +01:00
bc401bd531 🙈 Ignore TODO.md 2021-12-26 01:25:49 +01:00
9332b99305 ♻️ Update frontend logic with refactored types 2021-12-26 01:21:17 +01:00
627c03642a ♻️ Extract pubSubClient and actions into directories 2021-12-26 01:18:46 +01:00
93ef43ef12 ♻️ Extract chatClient and actions into folders 2021-12-26 01:17:32 +01:00
ca34a6a090 🏷️ Add types for actions 2021-12-26 01:12:22 +01:00
71f7546165 🎨 Format code 2021-06-20 00:51:50 +02:00
6735ee5519 🎨 Change stealVip return type to boolean
Indicates if the vip has been successfuly stealed
2021-06-20 00:43:40 +02:00
333099d30e ♻️ Extract timeout/interval times to constants 2021-06-20 00:41:56 +02:00