Commit Graph

21 Commits

Author SHA1 Message Date
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
e4c4b3b41f Hopeful fix for invalid operation exception when reconnecting to Howl and Discord 2024-07-18 14:20:15 +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
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
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
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
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
d470e64979 I'm a retard. 2024-06-17 19:46:26 +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
cdad1d6549 Big update. Replaced Newtonsoft with System.Text.Json where possible, removed Spectre, tried to suppress the pile of compiler warnings I get on the GUI project, and tried to correct an issue where sometimes the session token retrieved is not usable. 2024-06-14 23:03:05 +08:00
barelyprofessional
37ab1138ef Updated session token retrieval system to use Puppeteer to automatically log in and retrieve a token 2024-06-13 20:07:41 +08:00