Commit Graph

112 Commits

Author SHA1 Message Date
barelyprofessional f39438f71c Converted over to using the extension methods for handling the settings 2024-08-10 01:56:12 +08:00
barelyprofessional 946a7679ee I'm an idiot, forgot to null the cookies 2024-08-10 01:55:58 +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 5982858f8e Added commands for getting Rainbet betting info 2024-08-10 00:28:33 +08:00
barelyprofessional 99489a3629 Now retrieving the last 5000 entries, mostly because I'd often get consecutive failures from FlareSolverr. Also caching the cookies now with some logic to retrieve fresh cookies when challenged. So far this has made the bet history scraping a lot more reliable. 2024-08-10 00:28:15 +08:00
barelyprofessional 5d1334d2b3 Extended the command interface so it passes in the user's DB entry. Just avoids having to look it up again if you're doing DB operations involving the user 2024-08-10 00:27:06 +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
barelyprofessional f4db00246a Jackpot integration that probably works. Not tested 2024-07-26 15:51:56 +08:00
barelyprofessional cf3ed650f6 Using the fancy green/red colors instead of just color=red/green as it is easier on the eyes 2024-07-26 15:44:47 +08:00
barelyprofessional 831bca4445 Updated PuppeteerSharp 2024-07-26 09:39:26 +08:00
barelyprofessional 2340041a30 Conditional access on the howlgg instance because there's a chance it'll be null if it is mid-reconnection 2024-07-26 11:29:28 +10:00
barelyprofessional 546b1d161a Replace SendInstant with Send as it's more thread safe or something 2024-07-26 11:28:52 +10:00
barelyprofessional 632638fcb1 Add some extra info when a user doesn't have access to command 2024-07-26 11:28:33 +10:00
barelyprofessional 8676241fbf The Final Solution to the Websocket question? I've gone through like 10 different iterations to try and get ByServer reconnections to work correctly. Now just disabled reconnection altogether and I'm manually disposing and recreating the instance whenever it dies using a watchdog task. So far working great after 12 hours! 2024-07-20 10:42:38 +10:00
barelyprofessional 2574d278a7 Added recent bets command and now casting the magic number to a float so the bot can show bets <$1 2024-07-20 10:40:50 +10:00
barelyprofessional 0d8116bf24 Removed end of line token for juiceme 2024-07-18 18:03:07 +10:00
barelyprofessional 272317f828 Added a basic Howl.gg stats command, implemented a setting for controlling the magic number to divide by and retroactively updating bet/profit amounts for unrealized gains on slot feaches 2024-07-18 18:02:44 +10:00
barelyprofessional e4c4b3b41f Hopeful fix for invalid operation exception when reconnecting to Howl and Discord 2024-07-18 14:20:15 +10:00
barelyprofessional 6c8ee91ad6 Put in a hacked up feature to disable Kick Pusher as the API is having massive issues (again) 2024-07-18 12:46:12 +10:00
barelyprofessional 76b4a750a7 Usually prefer to have these as info so I can see whether the connection is still alive at a glance 2024-07-18 01:43:35 +10:00
barelyprofessional d61a171e54 Big update introducing ghetto command interface, settings, database and howl.gg bet feed scraping 2024-07-18 01:37:15 +10:00
barelyprofessional 936bf743a5 Added Twitch IRC over Websocket support 2024-07-01 00:24:07 +08:00
barelyprofessional 83a5e149ef Replaced logging of the disconnection exception as it basically never had any value. Serializing provides a lot more useful information including the reason the server sent 2024-06-30 20:02:05 +08:00
barelyprofessional a865730918 Minor changes around logging and the stream stop message 2024-06-30 19:51:40 +08:00
barelyprofessional e3550c5e6e Decreased log level for Shuffle pongs as it's spammy and I no longer need to track this so closely as the issues with it have been mostly fixed. Also cleaned up some remnants from the copy paste job 2024-06-30 19:51:12 +08:00
barelyprofessional 3b38994405 Added heartbeat ack opcode 2024-06-30 18:58:08 +08:00
barelyprofessional f413503d27 Implemented Discord support. Similar to GambaSesh though doesn't do transcription but does display attachment URLs and device presence data 2024-06-30 18:53:53 +08:00
barelyprofessional 14884c717e Updated Kick functionality to alert on dirtdevil-enjoyer going live as BMJ got permabanned and it serves no purpose now 2024-06-30 13:34:53 +08:00
barelyprofessional dd8ba2c5c5 Replaced with bossmanjack.tv 2024-06-28 16:08:36 +08:00
barelyprofessional adf9ad2d87 Added HTML decode to fix issues with users who have apostrophes in their username 2024-06-28 11:09:39 +08:00
barelyprofessional 2e4616c736 Added a feature to reconnect if the bot somehow gets stuck (either not joined to a channel or stuck in a disconnected state) 2024-06-27 11:30:41 +08:00
barelyprofessional 4ece07d64d Dispose of Shuffle properly before rebuilding it as otherwise you end up with random Shuffle ping tasks waking up and trying to ping a dead connection 2024-06-27 11:15:41 +08:00
barelyprofessional 5bff1a1035 Ghetto whois feature 2024-06-25 00:33:29 +08:00
barelyprofessional 004c078d54 The bot will now set the GambaSesh presence detection flag if it receives a message in chat from GambaSesh while believing it isn't present. This should hopefully resolve issues where the bot author (since he shares accounts) leaves the channel while the bot is still present which trips the flag. 2024-06-23 13:30:31 +08:00
barelyprofessional 4aef087f3b Added a Websocket disconnection event to Shuffle that rebuilds the Shuffle connection if it's forcibly disconnected. This seems to have resolved issues with the bot disconnecting from Shuffle and never reconnecting. 2024-06-23 13:26:30 +08:00
barelyprofessional ff2a4c0e2e Added in support for grabbing Shuffle user profiles 2024-06-20 22:34:28 +08:00
barelyprofessional 4846c0c962 Use newline instead of sending two messages as they come out of order 2024-06-20 10:15:53 +08:00
barelyprofessional c50c5dcd85 Slightly smarter red text 2024-06-20 00:51:32 +08:00
barelyprofessional 67b912d5da Apparently didn't commit everything 2024-06-19 23:33:53 +08:00
barelyprofessional 57584918d0 Shuffle gamba watching 2024-06-19 23:32:56 +08:00
barelyprofessional 980a2b1c98 Renamed TwitchWs to Twitch as I intend to add a non-WS related helper function for checking if a stream is live using Graph QL 2024-06-19 10:46:17 +08:00
barelyprofessional 1c08231e7c Added examples of WebSocket payloads 2024-06-19 10:45:23 +08:00
barelyprofessional 87225ead2f Reset GambaSesh presence detection on reconnect so it can resync with join list 2024-06-18 15:11:09 +08:00
barelyprofessional d470e64979 I'm a retard. 2024-06-17 19:46:26 +08:00
barelyprofessional 8d28733309 Corrected NullReferenceException due to WsReconnection event being called before the reference to the instance was created 2024-06-17 19:22:04 +08:00
barelyprofessional ec6c050e23 Added Twitch PubSub support. Heavily ripped off code from GambaSesh though rewrote it to use Websocket.Client and will refactor the JSON parsing once I know exactly what the payload looks like. Presently untested. Also added a new config option to suppress messages, so one can run a local copy of the bot without disturbing anyone and made the Proxy a single config rather than having one for KF and one for Pusher. 2024-06-17 19:10:52 +08:00
barelyprofessional f7278c6d3f Updated reconnection logic to always fire even if it's an initial "reconnection". This is to avoid the bot lingering outside the channel after fetching a fresh token as it was triggering a ByUser reconnect then an Initial reconnect and therefore not sending the join message. 2024-06-17 19:07:24 +08:00
barelyprofessional 5cdab275c3 3xpl websocket client in case anyone wanted one. Don't bother using it though, their websocket service is a piece of shit that's totally broken which I only found out after wasting a day on it. 2024-06-16 12:18:56 +08:00