Commit Graph

531 Commits

Author SHA1 Message Date
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
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
98f7b2b27e Changed NLog console to ColoredConsole 2024-06-13 23:01: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
barelyprofessional
3ef573be5c Updated CLI client with newer URL and made rooms optional to test the behavior of Sneedchat with no room joined 2024-06-09 14:58:17 +08:00
barelyprofessional
6102a88721 Gamba Sesh presence detection ruined commands. Guarded message sending by baking it into a method to make things simpler. 2024-06-09 14:46:50 +08:00
barelyprofessional
bdabe29b83 Fix Kick emote regex so it's less greedy and can handle consecutive emotes with no space 2024-03-26 16:35:45 +08:00
barelyprofessional
3a972cd32c Updated image to 16x16 version 2024-03-26 13:43:12 +08:00
barelyprofessional
a20b109871 Updated to disable debug logging as it was just too much 2024-03-26 13:40:56 +08:00
barelyprofessional
c0c8ba655f Added Gamba Sesh presence detection, cooldown on start to prevent responding to chat buffer, super basic commands, notifications, message forwarding from Kick, memory so that it doesn't answer messages already seen (too bad if you edit) 2024-03-26 13:40:44 +08:00
barelyprofessional
dd0aaa954f Copy nlog config to output 2024-03-26 13:38:48 +08:00
barelyprofessional
96e553845f Implemented bbcode translation for Kick emotes using an extension method and regex 2024-03-26 13:38:33 +08:00
barelyprofessional
9f92fc8e27 Initial commit 2024-03-25 20:11:49 +08:00