Commit Graph

317 Commits

Author SHA1 Message Date
Andriy 2a37b27bb4 [store] other use default client factory 2023-07-28 23:14:36 +03:00
Andriy 42509dcacd [core] client factory for SomeRandomApi 2023-07-28 23:14:05 +03:00
Andriy c19696b360 [store] kitties now have own http client factory 2023-07-28 22:57:20 +03:00
Andriy 462f3c9836 [store] categorize store services 2023-07-28 20:04:05 +03:00
Andriy d2e564cec6 [cas] use http client factory 2023-07-28 19:41:21 +03:00
Andriy 7aed09c87c [cas] use file-scoped namespaces 2023-07-28 19:34:28 +03:00
Andriy c8951aad45 [ci] rename workflow & add cache 2023-07-28 19:24:04 +03:00
Andriy 04b793b942 [ci] replace deprecated set-output with env file 2023-07-28 19:18:50 +03:00
Andriy bfe42afc3e [ci] update actions versions 2023-07-28 19:13:45 +03:00
Andriy cbabf96688 Merge pull request #34 from Bubuni-Team/feature/codewatcher/options-and-upload
[code-watcher] Options and auto-upload
2023-07-28 18:40:16 +03:00
Andriy 8071863037 [core] Reduce chunk to fit option title into button 2023-07-28 17:22:28 +03:00
Andriy 5471b412d9 [code-watcher] Add CodeWatcherMode option.
There are three option values:
- Disabled: module does nothing (wow).
- Remove: module removes matching messages and sends temporary message
          to instruct user what to do.
- Upload: module uploads detected code to configured Haste Server.
2023-07-28 16:53:01 +03:00
Andriy 1d313d5271 [store] shorten animbbos title, reorder items 2023-07-23 12:17:45 +03:00
Andriy 79106ad47d [core] show choice short name in option button 2023-07-21 19:50:48 +03:00
Andriy 7d3145a9e8 Merge pull request #33 from Bubuni-Team/feature/core/chat-options
[core] New fancy option system
2023-07-21 19:29:54 +03:00
Andriy d3b6da0ebd [core] this class shouldn't be here 2023-07-21 19:27:58 +03:00
Andriy 4893c1240d [store] Make store use AllowNSFW option 2023-07-21 18:40:24 +03:00
Andriy 613ac5ae22 [reputation] KarmaMode now actually changes smth 2023-07-21 18:39:38 +03:00
Andriy 864f6d0f57 [core] add IServiceCollection extension for option registration 2023-07-21 18:38:34 +03:00
Andriy 27ddfd39cc [core] Massive setting system update
- Get rid of attribute crap. Now only interface is required
- Rename canUse to isAdmin in `Bot.IsUserAdminAsync` to match the actual meaning of variable
- Made `AnswerQuery` reusable by moving it from ContentStore to Core's CommonHandler
- Chat Settings edit frontend (inline keyboard)
- Rename NsfwOption to AllowNsfw and move it to ContentStore module
- Remove option backend testing commands
- Add KarmaMode option as an example of Select option type
2023-07-21 17:14:11 +03:00
Andriy 467ccd4fde [core] move core handlers into subfolder 2023-07-20 21:22:35 +03:00
Andriy 8de8eac959 initial chat options implementation 2023-07-20 20:24:16 +03:00
CrazyHackGUT 46774bfd93 Fix markup, Raccoon store item 2023-05-17 23:48:39 +03:00
CrazyHackGUT a42bd7e22d Merge pull request #32 from Bubuni-Team/sgut_more_animals
Abstract for some-random-api.com, more animals
2023-05-17 23:44:03 +03:00
CrazyHackGUT 9a554ee295 Abstract for some-random-api.com, more animals 2023-05-17 23:36:20 +03:00
CrazyHackGUT d63113f58c Unavailable store item message (#31) 2023-05-17 23:12:15 +03:00
CrazyHackGUT aef13b1883 Fix Red Panda 2023-05-17 22:37:40 +03:00
CrazyHackGUT c8e833c48f Merge pull request #30 from Bubuni-Team/patch/rss_relative_uri
Fix URL building for feeds with relative URLs
2023-02-15 18:40:35 +03:00
CrazyHackGUT dba84e1a62 RSS may have relative URI 2023-02-15 18:28:37 +03:00
CrazyHackGUT 1a94764334 DeleteService should be runned too frequently 2023-01-29 10:17:25 +03:00
CrazyHackGUT acc619a21e Fixes for cleanup all messages 2023-01-29 10:11:55 +03:00
CrazyHackGUT ee1f1cf30c Add autocleanup for Guess and Roll handlers 2023-01-29 10:05:44 +03:00
CrazyHackGUT 682920cbfb Merge pull request #29 from Bubuni-Team/feature/core/auto-delete
Move message auto-delete service from code-watcher to core
2023-01-28 23:15:11 +03:00
Andriy bbcdfff2b9 [core] move message auto-delete service from code-watcher to core 2023-01-23 13:12:38 +02:00
Andriy 261c1178b7 [entertainment] fix /guess date formatting 2023-01-18 17:17:28 +02:00
Andriy 788537c88a [entertainment] also show response number in /guess 2023-01-18 16:51:07 +02:00
Andriy 66fe5cb4fb [entertainment] cleanup callbackquery handler, show guessed number 2023-01-18 16:29:18 +02:00
CrazyHackGUT e3eb54d0e0 Merge pull request #27 from Bubuni-Team/feature/entertainment/guess-game
[entertainment] use inline keyboard to handle answers
2023-01-18 17:06:07 +03:00
Andriy 84e2ba44c5 [entertainment] enable accidentally disabled cooldown check 2023-01-18 16:03:41 +02:00
Andriy 7228e4ff3c [entertainment] edit guess message instead of deleting and sending a new one 2023-01-18 16:00:53 +02:00
Andriy 90d9d61576 [entertainment] use inline keyboard to handle answers 2023-01-18 15:49:51 +02:00
Andriy 965d39ecf0 Merge pull request #26 from Bubuni-Team/feature/entertainment/guess-game
[entertainment] add guess game
2023-01-18 02:22:22 +02:00
Andriy 9cbb5d7240 [entertainment] move cooldown check to the handler start in /guess 2023-01-18 02:20:37 +02:00
Andriy ec11cf4496 [entertainment] add guess game 2023-01-18 02:07:48 +02:00
Andriy c61d875a6a Merge pull request #25 from Bubuni-Team/feature/core/thread-safe-random
Thread Safe Random
2023-01-17 23:18:22 +02:00
Andriy 83296efbb7 [entertainment] use thread safe random, update /roll number range 2023-01-17 23:13:06 +02:00
Andriy 98b1e2f0f7 [core] add thread safe random to DI 2023-01-17 22:48:08 +02:00
Andriy 174c66c1cd Merge pull request #24 from Bubuni-Team/feature/sticker2png
Feature/sticker2png
2023-01-14 15:35:46 +02:00
Andriy f1c4375613 [sticker-tools] add to dockerfile, adjust project configuration
Co-authored-by: voed <voed@i.ua>
2023-01-13 01:28:34 +02:00
Andriy 7598f77637 [sticker-tools] init module 2023-01-13 00:58:12 +02:00