Commit Graph

28 Commits

Author SHA1 Message Date
Andriy 50774e1af6 fix: remove another bunch of obsolete method calls 2025-02-09 17:50:46 +02:00
Andriy c3a553f68d fix: build and lots of obsolete warnings 2025-02-09 17:41:13 +02:00
CrazyHackGUT 77d89f011b Revert "fix possible bans from Pavel Durov"
This reverts commit 1460cb0a75.
2024-05-28 22:30:28 +03:00
CrazyHackGUT 1460cb0a75 fix possible bans from Pavel Durov 2024-05-19 22:40:34 +03:00
Andriy 8ab067a027 Use file-scoped namespaces 2023-07-29 15:14:52 +03:00
Andriy a24332370d Code cleanup 2023-07-29 15:03:45 +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 8de8eac959 initial chat options implementation 2023-07-20 20:24:16 +03:00
Andriy ffffe2a48a [common] improve logging 2022-12-14 12:58:12 +02:00
Andriy 2aa54c79d0 [core] add extension to convert user into loggable string 2022-12-14 12:31:38 +02:00
West14 b58fe8b6e9 [code-watcher] init module. 2022-04-20 00:38:47 +03:00
West14 a4a44198c5 [reputation] Move reputation to separate module. 2022-02-14 00:18:53 +02:00
CrazyHackGUT 8ca58f7596 Potential fix for option saving 2022-01-25 23:34:37 +03:00
CrazyHackGUT b9a6bb0bc6 Use DbContext.Remove/Add instead of DbSet methods 2022-01-22 18:44:40 +03:00
CrazyHackGUT ff63d6dfaa Code cleanup 2022-01-22 17:13:38 +03:00
West14 b1876edf13 [rules] Fix permission check on setrules. 2022-01-18 21:59:26 +02:00
West14 b99614868b Assorted improvements.
- Move BotExtension to Core.
- Update BotFramework
- Fix Fun commands.
- Remove ChatManagement dependency from Entertainment.
2022-01-03 14:58:53 +02:00
West14 0112aea634 Reputation managment. 2021-12-28 21:00:23 +02:00
West14 7b37e2f35d Add ChatManagement commands. Drop appsettings from version control. 2021-12-26 15:40:14 +02:00
CrazyHackGUT 5f93d60277 Fix user option values on .NET 5+ 2021-12-25 23:52:09 +04:00
CrazyHackGUT 73ed1d88a9 Use the new version of TelegramBotFramework 2021-12-22 01:27:56 +04:00
CrazyHackGUT 8681c7cf69 Scratch for running next callbacks in queue 2020-03-09 19:31:16 +04:00
CrazyHackGUT 73cfe51312 Migrate to database storage in UrlLimitations 2020-03-08 12:38:00 +04:00
CrazyHackGUT 8f8898e901 🚧 Anti-spam system based on entities 2020-03-03 14:11:51 +04:00
CrazyHackGUT 0c82a6a69f Core bug fixes and improvements 2020-03-02 17:07:26 +04:00
CrazyHackGUT e86049f4fd 🚧 Core API and abstractions extending 2020-03-02 00:05:07 +04:00
CrazyHackGUT a7b3f97f1a 🚧 Core improvements 2020-03-02 00:05:07 +04:00