Commit Graph

36 Commits

Author SHA1 Message Date
barelyprofessional
42e6589e2a Original TruncateBytes extension method wasn't working right, seemed to include an extra character which would put us over the limit. Replaced it and new method seems to be working as expected albeit not as nice looking. 2025-02-09 16:23:35 +08:00
barelyprofessional
f0fc79c142 Attempt to improve the way long strings are split up. There's a new extension method called FancySplitMessage to achieve this. Truncation options now work on bytes instead of string length too 2025-02-09 15:59:39 +08:00
barelyprofessional
9732aac6b4 Hopeful fix for out of order messages where multiple are sent and more accurate length limit 2025-02-05 08:26:05 +08:00
barelyprofessional
1a0197a4c3 Added a notice for yats genchat logger 2024-09-21 00:25:14 +08:00
barelyprofessional
f55bdd0120 Modified the seen msgs thing so it now respects edits by tracking last edit time if set 2024-09-21 00:24:23 +08:00
barelyprofessional
82c37c2ece Configurable join fail limit 2024-09-17 20:23:51 +08:00
barelyprofessional
5b3f394c29 Converted send message method to async (also created a synchronous method that shadows the async method). Added a method to send multiple messages at once and message truncation with a choice of strategies 2024-09-17 00:57:11 +08:00
barelyprofessional
d20adeb6ef Changed initial start cooldown so it'll update the flag after the message flood finishes rather than on ping 2024-09-15 23:44:58 +08:00
barelyprofessional
04e73c8d5f Added a feature to replay buffered messages while chat is offline (up to a limit of the 10 latest by default) and changed the sent message tracking to pass-by-reference instead of exclusively using GUIDs. The GUIDs still exist for scenarios where you can't pass a reference to the object around. 2024-09-15 23:00:26 +08:00
barelyprofessional
bc9acf430f Track join failures and wipe cookies if the bot is stuck in a loop failing to join the room 2024-09-14 16:42:02 +08:00
barelyprofessional
115e9081cc More logging as I'm still having weird auth loops 2024-09-09 23:21:20 +08:00
barelyprofessional
a4aa0e0c84 Configurable ping interval and inactivity timeout. Won't ping anymore when the connection is dead 2024-09-09 23:16:05 +08:00
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
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
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
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
99b6afcec5 Added a command to query the restream 2024-08-30 22:26:41 +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
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
a84004156f Uncommented Chips message as it probably works now 2024-08-18 00:04:08 +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
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
c0d7f62c61 Added feature to track messages sent by the bot by reference so they can be edited 2024-08-11 21:11:37 +08:00
barelyprofessional
2c54ca30dd Missed converting this setting to use the extension method for booleans 2024-08-11 19:19:44 +08:00
barelyprofessional
f7bf0b1186 No longer log Kick chats as info to reduce spam 2024-08-10 16:57:17 +08:00
barelyprofessional
f39438f71c Converted over to using the extension methods for handling the settings 2024-08-10 01:56:12 +08:00
barelyprofessional
6e0c100e11 Removed the commented out Rainbet check. The first iteration was Websocket based, but it's now based on an API call so this is no longer needed. 2024-08-10 00:29:19 +08:00
barelyprofessional
a67641a14d Added Rainbet bet history scraping. Uses FlareSolverr to grab Cloudflare cookies then retrieves from the bet feed. Not perfect but mostly works. 2024-08-06 00:07:08 +08:00
barelyprofessional
508df3163b Forgot to build an instance of Jackpot. Tested it and it appears to work 2024-07-26 16:59:59 +08:00
barelyprofessional
f9d87220d2 Renamed the bot from KickBot -> ChatBot and removed the reference to Kick in the project name 2024-07-26 16:50:39 +08:00