1
0
Commit Graph

53 Commits

Author SHA1 Message Date
18224bb0f3 🏷️ Register light theme redemptions 2022-01-07 17:25:44 +01:00
e4570832e8 Create lightTheme action
Changes vscode theme and windows color scheme
2022-01-07 17:24:17 +01:00
e0b72f3b70 Add rewardCost to RedemptionMessage interface 2022-01-07 16:39:18 +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
044d697b15 🔧 Add tsconfig and fix some TS errors 2022-01-06 18:22:28 +01:00
931cc57b1b 🚨 Fix most of the linting error and warnings 2022-01-06 18:15:56 +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
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
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
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
6f6bd127e8 🏷️ Add return types 2021-06-20 00:41:13 +02:00
e4cff46771 ♻️ Extract ClientCredentials and add return types 2021-06-19 23:52:39 +02:00
3ffbd156cd 🏷️ Add type for Environment mode and remove
raw environment export
2021-06-19 23:00:41 +02:00
cb4edc0232 ✏️ Fix typo, missing await and weird code indentation 2021-06-18 23:55:58 +02:00
a61accfae0 🎨 Add file/module name to logs and
order/refactor minimal code
2021-06-18 20:37:00 +02:00
fa1e87115b 🚚 Move chatClient, pubSubClient and webServer to helpers 2021-06-18 19:31:20 +02:00
5256ebe6ae ♻️ Remove non needed arguments and obtain values
using helpers
2021-06-18 19:26:46 +02:00
41aaec835f ♻️ Move initialization code to "backend" 2021-06-18 19:04:31 +02:00
13b3bdcb97 ♻️ Extract pubSubClient 2021-06-18 18:35:34 +02:00
589da6d5f5 🐛 Fix connection bad conditional and set default
channel for client actions
2021-06-18 18:26:26 +02:00