Commit Graph

770 Commits

Author SHA1 Message Date
barelyprofessional
f81783019f It works! Make the size configurable so we can test various miniature kenos 2026-05-10 22:46:59 -05:00
barelyprofessional
9fd1124522 Possible fix for the grid breaking emojis. Trying again with Keno 2026-05-10 22:41:33 -05:00
barelyprofessional
1ee91e3f6c The grid rendering works but splitting up by chars doesn't work for multibyte so it breaks keno 2026-05-10 22:32:25 -05:00
barelyprofessional
1cb0ff21e4 Added missing cancellation token support to Keno and also experimenting with the table grid for it 2026-05-10 22:27:19 -05:00
barelyprofessional
32bef9f8e0 Add missing async support to ImageSharp for webp rendering in roulette as well as adding as much support for cancellation tokens as I can 2026-05-10 21:57:28 -05:00
barelyprofessional
a4b740480f Use async for image rendering and time delays on slots so it's hopefully responsive to timeouts 2026-05-10 21:41:11 -05:00
barelyprofessional
ec960d4cfe Added length limit to tags 2026-05-10 17:58:28 -05:00
barelyprofessional
f821a96f70 Add a tag limit 2026-05-10 17:42:49 -05:00
barelyprofessional
7eb24e7517 Add missing where for image count 2026-05-10 17:16:41 -05:00
barelyprofessional
97e7e5bf17 Remove example text 2026-05-10 17:00:14 -05:00
barelyprofessional
02f9ac7551 Humanize is glitchy with telling it to use spaces 2026-05-10 16:53:51 -05:00
barelyprofessional
ca322bde4d Consider existing entries when informing the user what they tagged with 2026-05-10 16:42:19 -05:00
barelyprofessional
8d06b75a57 Append tags instead of overwriting when tagging something that already has tags 2026-05-10 16:40:30 -05:00
barelyprofessional
94e7017f29 Increase FPS for Xitter media embeds to 30 2026-05-10 16:30:21 -05:00
barelyprofessional
4438175d80 Added commands to tag and untag images. List will now give actual image IDs for the purposes of tagging and there's a nag for untagged images 2026-05-10 16:28:22 -05:00
barelyprofessional
e6e62388b9 Added functionality to wrap grids and multi-line text into tables so they can be resized nicely 2026-05-10 16:08:15 -05:00
barelyprofessional
d71819819d Updated the tagging code from cohle
- Uses a List<string> as the underlying type which EF Core will serialize as JSON. Since SQLite doesn't have any native JSON features, it gets stored as TEXT
- Got rid of the alternate pathway used for selecting an image so it always has a degree of randomness assuming enough images were returned
- Simplified some of the existing Regex and removed the non capturing groups as they're cancerous
- Added/removed images will be spoilered.
- Added a metadata property for images. This is a JSON object that EF Core will serialize/deserialize for you and presently contains the user ID of whoever added the image as well as when it was added. Can be easily extended with no migration needed. Will be null for existing images.
- Added a migration process for moving Tags to TagList for fishtank
2026-05-10 15:30:54 -05:00
barelyprofessional
7df7e7dadf Add wager to the win size for statistics 2026-05-10 14:55:49 -05:00
barelyprofessional
07169f0837 Updated mines to hopefully fix a timing bug introduced by the 15 second delay. Extended the schedule auto delete functionality so that it can apply to any message, even ones not owned by the bot. 2026-05-10 11:23:38 -05:00
barelyprofessional
5e2dc25c77 Spoiler slots images 2026-05-10 11:01:09 -05:00
barelyprofessional
45cecb5e10 Apparently forgot how to format usernames right for my stupid bot 2026-05-10 10:57:42 -05:00
barelyprofessional
4d1f61bfdc Use spoiler titles for stats 2026-05-10 10:55:21 -05:00
cohlexyz
287e453b9e Add tagging to image carousel (#113) 2026-05-10 17:51:56 +02:00
barelyprofessional
f231845320 Split msg for length 2026-05-09 23:02:50 -05:00
barelyprofessional
0b2ae9d271 Add navigation properties 2026-05-09 22:56:26 -05:00
barelyprofessional
cd3e8f6147 Added big wins command 2026-05-09 22:51:27 -05:00
barelyprofessional
6b5e7d621b Delete !rain message for participants 2026-05-09 22:15:35 -05:00
cohlexyz
fc6b0e2918 Add missing new line (#112) 2026-05-05 02:09:59 +02:00
cohlexyz
79286662ce No newlines for media + spoiler (#111) 2026-05-04 02:29:44 +02:00
barelyprofessional
cf62274b4b Added option to disable DLive since it has shutdown 2026-05-01 21:13:26 -05:00
barelyprofessional
972e880aa9 Added missing balance format to Krash 2026-05-01 19:53:59 -05:00
barelyprofessional
f5f0ba6323 Added an option to get your exact balance to help deal with rounding issues 2026-05-01 19:53:43 -05:00
barelyprofessional
ab94098dd2 Remove dodgy reference to Redis connection string 2026-05-01 18:20:58 -05:00
barelyprofessional
c79105bb44 Redis client never has a chance to initiate so added that to the start of the bot 2026-05-01 18:12:54 -05:00
barelyprofessional
000c87266e Fix infinite loop on scaled bet 2026-05-01 11:57:20 -05:00
barelyprofessional
7981f57a34 - Moved the Kasino shop models to their own file
- Added investments as a derivative of assets
- Added profile state flags which can retain basic states like IsSponsored
- Added profile state data using EF Core's JSON functionality so it should automatically serialize / deserialize the accompanying model for convenience (OnModelCreating code commented out due to the models not yet having a DbSet as I won't bake them in until KasinoShop is ready)
2026-04-26 20:39:49 -05:00
barelyprofessional
e725ca5864 Moved to Lazy<T> and a static class for handling Redis connections with some methods to make it easier to work with JSON. Completely untested. 2026-04-26 20:30:56 -05:00
barelyprofessional
1778d0d573 Go back to direct OCIS linking due to increased length limits in chat so it should work now 2026-04-26 08:12:59 -05:00
alogindtractor
9acc1172cc fixed rigging, add a little more delay to the rig message so you can see it better (#110)
fixed rigging, add a little more delay to the rig message so you can see it better
2026-04-23 05:10:14 +02:00
alogindtractor
3ab46bb4c7 Refactor betting logic and game state handling (#109)
scales bets if user doesn't have enough balance unless they're below 1KKK
fix for the ability to krash after the game is over guaranteeing a win
2026-04-19 05:31:12 +02:00
barelyprofessional
b4cd21da41 Didn't work but I'm half convinced cookie containers never fucking work in .NET anyway so trying the shitty Rainbet hack since that at least was good enough to establish the WebSocket 2026-04-16 21:45:52 -05:00
IfYouComplainImDFEingAgain
3d269716e8 Add Whisper transcription for BossmanJack Discord voice messages (#107)
* Add Whisper transcription for BossmanJack Discord voice messages

Detect Discord voice message attachments (audio with IS_VOICE_MESSAGE flag)
from the monitored user and transcribe them via OpenAI Whisper API before
relaying to chat. Reuses the existing OpenAi.ApiKey setting. Feature is
disabled by default via Whisper.Enabled setting.

* Use separate API key setting for Whisper transcription

* Switch to local Whisper and post-then-edit transcription flow

Voice messages are now relayed immediately with a "transcribing..." placeholder,
then transcribed locally via the whisper CLI and the message is edited to append
the result. Removes OpenAI API dependency in favor of a local whisper binary.

Settings: Whisper.BinaryPath, Whisper.Model, Whisper.Enabled

---------

Co-authored-by: DFE <dfe@dfe.com>
Co-authored-by: barelyprofessional <150058423+barelyprofessional@users.noreply.github.com>
2026-04-17 04:14:58 +02:00
barelyprofessional
1a49fe1976 prayge this is good enough to deal with the Cloudflare problems 2026-04-16 21:10:45 -05:00
barelyprofessional
2bce346967 Don't build Winna if disabled 2026-04-15 20:52:32 -05:00
barelyprofessional
39be005d38 Experimental Winna support 2026-04-15 20:44:56 -05:00
alogindtractor
1abe5974a7 Update ToolUrl for MinesCommand (#106)
more clean now
2026-04-12 02:18:44 +02:00
barelyprofessional
1461c1043a Maybe fix DST problems and also the infinite money glitch at the 23rd hour of the day 2026-04-10 00:06:06 -05:00
barelyprofessional
2c55e94bfd Fixed green/red colors and added support for multiple bets from the same participant 2026-04-09 21:28:24 -05:00
barelyprofessional
7a58976c16 Forfeit if balance drops too low for Krash 2026-04-09 21:15:53 -05:00
barelyprofessional
d4d499aebd Added enable/disable for Krash and cleanup delay as a configurable value 2026-04-09 20:48:49 -05:00