Commit Graph
100 Commits
Author SHA1 Message Date
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
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
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
AndriyandGitHub 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
AndriyandGitHub 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
AndriyandGitHub 174c66c1cd Merge pull request #24 from Bubuni-Team/feature/sticker2png
Feature/sticker2png
2023-01-14 15:35:46 +02:00
Andriyandvoed 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
Andriy 55a4569a4a [core] bump base dotnet image versions 2023-01-07 18:02:25 +02:00
AndriyandGitHub 23b800ae53 Merge pull request #23 from Bubuni-Team/feature/reputation-roll
[entertainment] roll comes back with improved logging
2023-01-07 17:52:27 +02:00
Andriy 2722b88a15 [entertainment] roll comes back with improved logging 2023-01-07 17:47:09 +02:00
Andriy 5db3fc8eee [store] add red pandas, rename incorrectly named file 2023-01-05 02:09:53 +02:00
Andriy 2043fd7ccd [core] bump framework 2023-01-03 14:17:28 +02:00
Andriy 41cda68329 [rss] fix images send with spoiler 2023-01-03 12:28:42 +02:00
Andriy bcdb0fefee [core] update dependencies 2023-01-02 23:42:07 +02:00
Andriy ff78d8e2ae [store] hide nsfw content behind spoiler 2023-01-02 23:31:05 +02:00
AndriyandGitHub 996147436b Merge pull request #22 from Bubuni-Team/feature/botapi-6.4
[core] add support of new bot api
2023-01-02 21:54:16 +02:00
Andriy eca77267d7 [core] add support of new bot api 2023-01-02 20:13:41 +02:00
Andriy 19a14bb1ea [code-watcher] bust code in captions 2023-01-01 22:53:31 +02:00
Andriy 2cfcddf44d [entertainment] shutdown roll handler 2022-12-16 16:35:45 +02:00
Andriy ffffe2a48a [common] improve logging 2022-12-14 12:58:12 +02:00
Andriy 82129d8006 [entertainment] add /reset_roll command 2022-12-14 12:31:53 +02:00
Andriy 2aa54c79d0 [core] add extension to convert user into loggable string 2022-12-14 12:31:38 +02:00
Andriy 9a957af5ac [entertainment] move roll handler to correct namespace, adjust some numbers 2022-12-14 11:50:02 +02:00
AndriyandFrolish 4f89be554a [entertainment] add roll command by @frolish
Co-authored-by: Frolish <lonkura.zip@gmail.com>
2022-12-14 11:40:27 +02:00
Andriy a97fac85e4 [store] fix kitties purchasable IDs 2022-11-14 13:54:37 +02:00
AndriyandGitHub 8a2f5c6ad3 Merge pull request #19 from Bubuni-Team/feature/store/kitties
[store] refactor, add new purchasables
2022-11-14 01:12:44 +02:00
Andriy c893992f5b [store] add nsfw guard for boobs 2022-11-14 00:49:56 +02:00
Andriy 36e5ddd5af [store] refactor, add new purchasables 2022-11-14 00:23:36 +02:00
Andriy c50d5f63ba [rss] ability to hide feed from list 2022-11-02 11:02:41 +02:00
Andriy 8e0eea3025 [store] crappy bypass of tg cache, to fix random capybara 2022-08-30 15:01:22 +03:00
Andriy b0973dcd31 [store] add capybara purchase 2022-08-30 00:48:49 +03:00
AndriyandGitHub 22b4384187 Merge pull request #18 from Bubuni-Team/feature/animation-set-message
[entertainment] add animation set message, fix HandleAnimation method visibility
2022-07-29 16:17:25 +03:00
AndriyandGitHub 4a03900dd0 Merge pull request #17 from Bubuni-Team/refactor/code-watcher
[code-watcher] Refactorings
2022-07-29 16:17:04 +03:00
Andriy dd6c896b08 [entertainment] remove unused CanPunish method 2022-07-29 13:11:13 +03:00
Andriy 2acc36d52a [entertainment] add animation set message, fix HandleAnimation method visibility 2022-07-29 12:20:24 +03:00
Andriy a4f05bacab [code-watcher] handle message edit & message delayed delete service
Message delayed deleter service deals with issue when you need to delete some message with delay without blocking the execution. This is replacement for dumb Task.Delay call. Use of it could be used before as exploit, to stop responding for a long time.
2022-07-07 17:15:40 +03:00
Andriy e1ec7937fe [code-watcher] skip messages with lineCount < 2 2022-07-07 17:02:47 +03:00
Andriy afb942a33a [code-watcher] double the trigger criterias 2022-06-14 11:23:02 +03:00
West14 2bffddd57c [store] disable store command for bots, cleanup 2022-05-10 19:11:01 +03:00
West14 0aea2fac42 [reputation] fix top fails when user left chat 2022-05-07 18:07:08 +03:00
West14 5eec35ba7d [cm] add reply when there are no banned stickerset list in db 2022-05-07 17:56:12 +03:00
West14 621fb27b46 [cm] fix wrong behaviour when bot doesn't have perms to delete sticker 2022-05-07 17:50:37 +03:00
AndriyandGitHub 918ab8d2d9 Merge pull request #16 from Bubuni-Team/feature/stickerset-ban
[cm] Ability to ban sticker sets
2022-05-05 22:26:27 +03:00
West14 76ad165695 [cm] ability to ban stickerset 2022-05-05 19:29:25 +03:00
AndriyandGitHub ff4cf0a0ef Merge pull request #15 from Bubuni-Team/refactor/warn
[cm] warn decomposition
2022-05-05 13:43:08 +03:00
West14 88e04df77c fuck visual studio 2022-05-05 13:30:59 +03:00
West14 df43c45f02 [cm] warn decomposition 2022-05-05 13:26:17 +03:00
West14 d90556d445 [store] add reputation info to bot answers 2022-04-26 00:49:32 +03:00
West14 f69ecc93f6 [store] add user balance 2022-04-26 00:28:39 +03:00
West14 7b4c5aa3d4 [cm] change culture to ru, add no-perm warn on /ban command 2022-04-25 20:13:43 +03:00
West14 1860995db5 [cm] fix warn overflow, return ban msg when warn limit is reached 2022-04-24 22:38:09 +03:00
AndriyandGitHub 57a11c44a8 Merge pull request #13 from Bubuni-Team/feature/timed-bans
[cm] ability to ban user for an arbitrary period
2022-04-23 22:06:54 +03:00
AndriyandGitHub 49c051910d Merge pull request #14 from Bubuni-Team/feature/reputation-improve
Draft: [reputation] /addrep command
2022-04-23 22:06:45 +03:00
West14 87b4732e99 [reputation] remove mentions in /top commands 2022-04-23 21:53:34 +03:00
West14 4accf36ffa [reputation] /addrep command 2022-04-23 21:43:29 +03:00
West14 5b77ef2b85 [cm] ability to ban user for an arbitrary period 2022-04-23 21:03:33 +03:00
AndriyandGitHub 634695d0d8 Merge pull request #12 from Bubuni-Team/feature/greetings
[cm] greet new members & refactor rules
2022-04-21 18:05:25 +03:00
West14 15b19c97dd [cm] greet new members & refactor rules 2022-04-21 17:42:44 +03:00
West14 fc7b341f49 [ci] disable container auto-deploy 2022-04-21 15:22:05 +03:00
AndriyandGitHub 749f4e0dcd Merge pull request #11 from Bubuni-Team/refactor/rss-cleanup
RSS module code cleanup.
2022-04-21 15:12:11 +03:00
West14 41a8eaefc2 [rss] Unsubscriber service cleanup. 2022-04-21 14:53:25 +03:00
West14 04a660181d [rss] MessageSender service cleanup 2022-04-21 14:33:01 +03:00
West14 00bfa59d11 [rss] possible fix for empty feed name in logs & RssFetch service cleanup 2022-04-21 14:26:35 +03:00
AndriyandGitHub 98cc8b8737 Merge pull request #10 from Bubuni-Team/feature/code-watcher
Code-watcher module.
2022-04-20 15:07:56 +03:00
West14 4f05a09846 [code-watcher] Cleanup. Remove notification in 1 minute after sending. 2022-04-20 13:14:01 +03:00
West14 b58fe8b6e9 [code-watcher] init module. 2022-04-20 00:38:47 +03:00
West14 166363cd50 [cm & ci] Send message on user unban. Trigger redeploy in CI. 2022-04-08 15:53:34 +03:00
West14 6b49ecb4d9 [debug-tools] Allow chat admins to use the /dump command. 2022-03-17 18:54:07 +02:00
West14 cd518131af Update README.md
The real purpose of this commit is to trigger the GitHub Actions workflow.
2022-03-17 18:25:39 +02:00
AndriyandGitHub 6ddea8ed1a [debug-tools] Module init. (#9) 2022-03-17 17:39:57 +02:00
West14 c1008e1040 [store] Refactor store command handler to use LINQ. 2022-02-25 20:47:24 +02:00
West14 fb1bfd20e5 [reputation] Fix antiflood condition. 2022-02-18 01:25:53 +02:00
West14 5307c201ab [reputation] Bypass antiflood for admins. 2022-02-18 01:21:05 +02:00
West14 a2404aecc6 [store] Real fix for button order. 2022-02-16 18:30:50 +02:00
West14 5718b49455 [store] Fix button order. Fix internal id for anim boobs. 2022-02-16 18:27:09 +02:00
West14 f0d5e080d5 [store] Add description about boobs request uri. 2022-02-16 18:09:55 +02:00
West14 cd8b25bcb8 [store] Reduce amount of hardcoded values. 2022-02-16 18:08:02 +02:00
West14 d99c71c07c [store] Refactor service registration mechanism. 2022-02-16 17:43:57 +02:00
West14 16ca4a09a2 Update Dockerfile to build ContentStore. Fix success purchase message markup. 2022-02-16 17:11:29 +02:00
West14 e815deba58 [store] Basic content store implementation.
- Bump Telegram Bot Framework to 0.6.9-gf1e77653ff
2022-02-16 17:07:30 +02:00
West14 12a4a0ae83 More detailed logging in UserService. Rename WhoIs handler to math the classname. 2022-02-14 21:00:51 +02:00
West14 46a0e375c5 [reputation] Fetch only positive reputation for rating. 2022-02-14 14:42:40 +02:00
West14 e885613c58 [reputation] Add rating. 2022-02-14 14:39:55 +02:00
West14 f80b5d0da8 [cm] Use file-scoped namespaces. 2022-02-14 10:35:28 +02:00
West14 05778f7960 [reputation] Use file-scoped namespaces. 2022-02-14 10:21:35 +02:00
West14 d3ec6cfb4b [whois] Move whois to separate handler in ChatManagement. 2022-02-14 10:20:07 +02:00