Commit Graph

77 Commits

Author SHA1 Message Date
Andriy d32b976e1a fix(core): incorrect time handling in AutoDelete 2023-12-13 00:34:43 +02:00
Andriy 5d7eb810b0 chore(core): update framework version 2023-11-01 20:47:14 +02: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 0677060429 Update to Telegram Bot Framework 2.0 2023-07-29 01:50:28 +03:00
Andriy 2a37b27bb4 [store] other use default client factory 2023-07-28 23:14:36 +03:00
Andriy 8071863037 [core] Reduce chunk to fit option title into button 2023-07-28 17:22:28 +03:00
Andriy 79106ad47d [core] show choice short name in option button 2023-07-21 19:50:48 +03:00
Andriy d3b6da0ebd [core] this class shouldn't be here 2023-07-21 19:27:58 +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 1a94764334 DeleteService should be runned too frequently 2023-01-29 10:17:25 +03:00
CrazyHackGUT ee1f1cf30c Add autocleanup for Guess and Roll handlers 2023-01-29 10:05:44 +03:00
Andriy bbcdfff2b9 [core] move message auto-delete service from code-watcher to core 2023-01-23 13:12:38 +02:00
Andriy ec11cf4496 [entertainment] add guess game 2023-01-18 02:07:48 +02:00
Andriy 98b1e2f0f7 [core] add thread safe random to DI 2023-01-17 22:48:08 +02:00
Andriy 2043fd7ccd [core] bump framework 2023-01-03 14:17:28 +02:00
Andriy bcdb0fefee [core] update dependencies 2023-01-02 23:42:07 +02:00
Andriy eca77267d7 [core] add support of new bot api 2023-01-02 20:13:41 +02: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
Kruzya c161cb929b Allow skip loading part of modules 2022-12-05 01:28:02 +04:00
Andriy 36e5ddd5af [store] refactor, add new purchasables 2022-11-14 00:23:36 +02:00
West14 7b4c5aa3d4 [cm] change culture to ru, add no-perm warn on /ban command 2022-04-25 20:13:43 +03:00
Andriy 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
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
West14 b58fe8b6e9 [code-watcher] init module. 2022-04-20 00:38:47 +03:00
CrazyHackGUT 49664064f6 Notification when user is flooding, fixes 2022-02-16 20:05:14 +03:00
CrazyHackGUT 8c3d7c3cc1 Merge branch 'feature/antiflood' into dev 2022-02-16 19:49:42 +03:00
CrazyHackGUT 5902968924 Fix validation of user flooding 2022-02-16 19:49:35 +03:00
CrazyHackGUT 45a89f77ee Merge branch 'feature/antiflood' into dev 2022-02-16 19:45:01 +03:00
CrazyHackGUT 520f1efe37 AntiFlood service 2022-02-16 19:44:53 +03: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 e885613c58 [reputation] Add rating. 2022-02-14 14:39:55 +02: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 41b49370f9 Fix priority for General Handler 2022-01-23 02:08:31 +03:00
CrazyHackGUT 652c4e8466 DatabaseGenerated attribute for user option values 2022-01-23 01:49:58 +03:00
CrazyHackGUT 8f51f1ece0 Fix (?) issues related with concurrency 2022-01-22 21:54:11 +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 5513d0b62b [whois] Remove unused import. Fix .gitignore. Do no fetch chatmember info, if custom status is set. 2022-01-20 15:00:34 +02:00
West14 a8c02184e9 [whois] Add chatmember status to output. Update .gitignore. 2022-01-20 14:28:26 +02:00
West14 b1876edf13 [rules] Fix permission check on setrules. 2022-01-18 21:59:26 +02:00
West14 9c291892cd Bump to .NET 6. Add arm64 image build. Use short commit hash on image tag. 2022-01-10 00:50:05 +02:00
West14 31a371b034 Change reputation counting algo. 2022-01-07 22:25:26 +02:00