Commit Graph

66 Commits

Author SHA1 Message Date
barelyprofessional
29f2863c9a Refactored Xeet embedding 2026-01-13 22:53:06 -06:00
cohlexyz
b873195e79 Add basic twitter post embeds (#46)
only handles text posts for now
2026-01-14 04:04:56 +01:00
barelyprofessional
3ca9e1278b Log spam 2025-10-26 10:43:58 -05:00
barelyprofessional
d53d2f1def Remove persistently failing mesasges from the deletion scheduled task if they get forever lost for some reason.
Also moved the check for null until after it has checked the deadline so it only cares if it's due to be deleted.
2025-10-18 19:30:49 -05:00
barelyprofessional
38177a9051 Remove spammy cleanup message 2025-10-12 13:00:59 -05:00
barelyprofessional
02f94128d8 I'm a retard 2025-10-12 12:59:33 -05:00
barelyprofessional
92d2770f98 Forgot to initialize scheduled deletions 2025-10-12 12:55:21 -05:00
barelyprofessional
99f5421736 Changed auto deletions to a background task running in the bot itself to hopefully make them reliable 2025-10-12 12:54:23 -05:00
barelyprofessional
a8853aef1c Auto cleanup not working :( trying a different method 2025-10-12 02:44:39 -05:00
barelyprofessional
c05a9d9d15 Added a feature to schedule message deletion. Changed the kasino games to use them so planes doesn't get deleted mid-run.
Also increased Planes timeout to 120 seconds as some games run on very long.
2025-10-12 02:35:02 -05:00
barelyprofessional
fcd82f552b Added property for when a sent message was last edited 2025-10-09 00:48:24 -05:00
barelyprofessional
23568a85c6 Added auto delete after x amount of time to the send chat message method 2025-10-06 03:14:08 -05:00
barelyprofessional
146abbe885 THe battle of the retards continues. Total U+200B Death 2025-09-22 20:06:49 -05:00
barelyprofessional
8fca8829f6 Allow the bot's services to fully initialize even if the website is completely dead so that auto capture works 2025-09-21 13:01:19 -05:00
barelyprofessional
74be702473 Trap exceptions from process message 2025-09-12 13:44:48 -05:00
barelyprofessional
689b7b1cb8 Only respond if message wasn't edited 2025-09-05 11:11:07 -05:00
barelyprofessional
43b0b2bb25 More more more 2025-09-04 19:17:59 -05:00
barelyprofessional
45a8a1ba86 Account for l and I in impersonation detection 2025-09-04 18:45:20 -05:00
barelyprofessional
848214e90f Updated impersonation logic 2025-09-02 02:30:32 -05:00
barelyprofessional
6ca1cf055c Added the initial framework for the new Money system.
Includes
- 5 new tables: Gamblers, Transactions, Wagers, Exclusions, Perks
- Still heavily WIP and not ready to be enabled, no games present and a lot of missing functionality
- For now it's completely disabled until it's ready to be used.
2025-08-20 14:59:09 -05:00
barelyprofessional
92ed776e31 Added a settings toggle for the impersonation feature 2025-07-27 01:39:37 -05:00
barelyprofessional
35c3964854 Added a lot more error handling to the bot so issues retrieving tokens should no longer completely take the bot down. Also added a last ditch exit if the bot has completely died and isn't reconnecting at all 2025-07-24 12:45:37 -05:00
barelyprofessional
c086ed350a Anti faggotry 2025-07-15 00:10:40 -05:00
barelyprofessional
e2c70cc5c5 Update to the Settings interface.
- Methods are now suffixed async
- Extension methods moved to the actual class and class renamed from SettingValue to Setting
- "Helpers" renamed to "SettingsProvider"
- Removed the ghetto CSV list method. Only setting using it was Pusher Channels which was orphaned by the new Kick channel feature. The call to ToList in the Chips.gg integration was incorrect and just proves lists should be consistently based around JSON objects instead of randomly string splitting
2025-05-06 14:07:52 -05:00
barelyprofessional
dd0f6cee6c Added functionality to the database for a WhoWas feature that can say when a user was last in chat 2025-04-13 13:09:46 -05:00
barelyprofessional
291ca7954e Removed pointless additional use of db.SaveChanges(); 2025-03-31 21:16:15 +08:00
barelyprofessional
011cf658be Removed the yats code as that dude never steps foot in the Kasino (good) 2025-03-31 21:14:21 +08:00
barelyprofessional
4523fe8e15 Don't show edits to the console. Sick of Spambasesh 2025-03-22 14:12:05 +08:00
barelyprofessional
a7829470de Notify everyone if Kees H joins 2025-03-02 20:56:09 +08:00
barelyprofessional
0319c73998 Added an async method to delete messages and a command to delete last n messages based on sent message tracking 2025-02-17 00:23:04 +08:00
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