Commit Graph

213 Commits

Author SHA1 Message Date
barelyprofessional
450f26f763 Fixed an incredibly silly bug where the bot would attempt to update the session token when the client hadn't yet been initialized, which would cause it to catch a null and get caught in a loop. This error was silent when caused by a reconnect event :( 2024-09-07 17:06:39 +08:00
barelyprofessional
081c42ec28 Added some more debug logging for when retrieving the session cookie 2024-09-07 17:04:23 +08:00
barelyprofessional
6f7470c0b3 Added an event for Twitch commercials 2024-09-07 17:02:13 +08:00
barelyprofessional
cdca1259bb Added a command to tweak the live stream status for relaying off-screen gambling 2024-09-07 17:00:57 +08:00
barelyprofessional
b879efe256 Workaround as KiwiFlare has been disabled 2024-09-07 00:19:46 +08:00
barelyprofessional
c4033d0135 Changed the verbiage to role as it sounds a bit better and gave guest role a descriptor "Rat" 2024-09-05 22:02:05 +08:00
barelyprofessional
2fb3d1f87b Added gmkasino commands 2024-09-05 21:31:13 +08:00
barelyprofessional
a6a00459ce Added !gmkasino 2024-09-04 01:01:10 +08:00
barelyprofessional
4cb5c0327a I'm an idiot. Same oversight with updating the token when the user is logged in. 2024-09-02 20:50:05 +08:00
barelyprofessional
85bd4e3b2c Corrected omission where KfClient would not be populated with the newly retrieved token after refreshing it and get caught in a reconnect loop. 2024-09-02 20:47:57 +08:00
barelyprofessional
cc19b0bb7c Cleaned up the duplicated login page request code 2024-09-02 20:29:54 +08:00
barelyprofessional
ace5646f36 Fixed missing Pusher channels setting causing the bot to fail to start and fixed code so a single failing task won't take down the whole bot 2024-09-02 00:39:39 +08:00
barelyprofessional
3b1f967a02 Service initialization is now async so the bot starts up faster 2024-09-02 00:26:33 +08:00
barelyprofessional
c3aa839e82 Defaulted GambaSesh Discord bypass to true since he's not setup with the new Discord guild 2024-09-01 21:10:38 +08:00
barelyprofessional
0ea864d1b6 Removed Puppeteer and logging in by POSTing the logon form now that we can get clearance tokens. 2024-09-01 20:33:23 +08:00
barelyprofessional
62304bccdb I'm an idiot, setting a value clears the cache for that setting so no need to make RestreamUrl never cache 2024-09-01 20:26:04 +08:00
barelyprofessional
67cd007252 Updated SetValueAsKeyValuePairs to SetValueAsJsonObject 2024-09-01 20:24:59 +08:00
barelyprofessional
7509375b43 Added due credit to KiwiFlare.cs for the original Go implementation I adapted this from. Also added extra logging, refactored the challenge worker, and cleaned up the code a little. 2024-09-01 20:24:20 +08:00
barelyprofessional
b3dc9a23e4 Removed the key-value pair methods for settings and replaced them helpers for JSON serialization and deserialization. This is because the key-value pair is pretty limited, easy to break and wasn't even being used anyway, JSON is far superior for storing a dictionary. 2024-09-01 20:22:28 +08:00
barelyprofessional
2906481b27 Experimental KiwiFlare solver which appears to work based on my one test 2024-09-01 03:01:11 +08:00
barelyprofessional
e4b1821a5b All the ancillary services have been moved out of the chatbot's class and relocated to a separate file. THe code is still very messy but at least it'll make the main bot easier to navigate.
Also refactored a bunch of shit
* Removed the thread used for pinging, now an async timer
* Kick will no longer block the bot from starting
* Twitch initialization follows the same rules as other services where everything is contained to its build method
* Fixed a bug where the bot's heartbeat logic would get messed up by the machine timezone if it wasn't UTC
2024-09-01 00:53:44 +08:00
barelyprofessional
81a510120d New setting for Bossman's howl ID 2024-09-01 00:48:06 +08:00
barelyprofessional
99b6afcec5 Added a command to query the restream 2024-08-30 22:26:41 +08:00
barelyprofessional
dffbecf1ec Added an admin command to set a user's right 2024-08-30 22:25:36 +08:00
barelyprofessional
eada3243b9 Make Discord channel and stage alerts more prominent 2024-08-29 16:17:54 +08:00
barelyprofessional
48ef59da3c Hopefully fix a bug where it gets trapped in a reconnection loop. The issue is the bot tries to reconnect too fast, this just resets the last event so it doesn't try again too soon. 2024-08-24 13:32:42 +08:00
barelyprofessional
f81a2f5a42 Added the ability to selectively enable Discord integration for when GambaSesh wigs out and manually control the bet feed given there's no obvious signal when Bossman is live (I might tie in the stage notifications as an alternative tho) 2024-08-23 12:32:51 +08:00
barelyprofessional
a717224ee4 aaand this one, I'm an idiot 2024-08-23 12:32:01 +08:00
barelyprofessional
1d21913afa Forgot to include these files in the previous commit 2024-08-23 12:31:53 +08:00
barelyprofessional
6166b76f92 Updated commands to remove the hide from help property, instead set the help text to null for whenever that eventually gets implemented.
Also refactored the way tasks are handled so instead of adding to an array and checking in on them next time someone sends a message, it instead delegates it to a very basic async handler that'll await the command, report errors and kill the task if it takes too long.
2024-08-23 12:31:33 +08:00
barelyprofessional
ca81702fc0 Now treat user not existing as being offline as Bossman got perma banned on Twitch 2024-08-23 12:28:31 +08:00
barelyprofessional
45ba16f419 Bumped packages 2024-08-23 12:27:40 +08:00
barelyprofessional
840fe19430 Added support for channel creation / deletion and joining / leaving stages for Discord 2024-08-23 12:27:31 +08:00
barelyprofessional
61f54c6958 Fixed currency conversion and formatting, added disclaimer 2024-08-18 01:54:55 +08:00
barelyprofessional
e31cf1245a Workaround for inconsistent authentication behavior 2024-08-18 01:34:28 +08:00
barelyprofessional
62375292e9 Off by 1 on the decimals 2024-08-18 01:03:44 +08:00
barelyprofessional
a84004156f Uncommented Chips message as it probably works now 2024-08-18 00:04:08 +08:00
barelyprofessional
21b14f134e Made cache misses an informational alert and updated message to be more helpful 2024-08-18 00:03:50 +08:00
barelyprofessional
f53e12552b Update chipsgg to ignore koth (whatever that is) 2024-08-17 23:53:05 +08:00
barelyprofessional
71b46d73d2 Added in memory caching 2024-08-17 23:45:29 +08:00
barelyprofessional
b390368713 Added Chips.gg integration. It basically works but needs more testing and also smashes the DB with how fast their feed updates. 2024-08-17 21:58:10 +08:00
barelyprofessional
d2f0519414 Updated the formatting to make the juice stats command more legible 2024-08-17 21:57:03 +08:00
barelyprofessional
19c10f20f5 Fixed number formatting in the rainbet stats command 2024-08-17 13:43:58 +08:00
barelyprofessional
e53150f790 Untested Juice statistics command 2024-08-17 13:43:32 +08:00
barelyprofessional
82bf88afe7 Added Twitch view count logging 2024-08-15 16:45:02 +08:00
barelyprofessional
18a50a757d Forgot to add a check for ignored user 2024-08-15 11:58:10 +08:00
barelyprofessional
59ec8f8850 Additional logging for debugging missed sent messages 2024-08-13 17:10:49 +08:00
barelyprofessional
06c64778ce Trim \r that was being passed through from Twitch chat 2024-08-13 17:10:24 +08:00
barelyprofessional
eef56d3f6b Decode entities in incoming message 2024-08-11 22:36:25 +08:00
barelyprofessional
9f07f6cf21 Forgot to bypass GambaSesh detection 2024-08-11 22:31:27 +08:00