43 Commits

Author SHA1 Message Date
13xforever
48fb3fcd5b
fix all the places where database is actually open for modification 2025-03-29 08:47:19 +05:00
13xforever
1a9359d863
switch to AsyncReadWriteLock to support async/await 2025-03-27 14:59:26 +05:00
13xforever
55f45457a2
use read/write locking for sqlite to fix Error 5: 'database is locked' 2025-03-27 12:20:33 +05:00
13xforever
12b733633f
fix warns, part 2 2025-03-25 12:58:04 +05:00
13xforever
24c8346154
fix context menus again 2025-03-24 21:02:23 +05:00
13xforever
d3d1570111
apparently you can only have 5 context menu commands per type 2025-03-24 20:38:52 +05:00
13xforever
c945b66ec8
fix sudo commands 2025-03-23 15:25:38 +05:00
13xforever
a3ab1a62c4
fix rename 2025-03-20 16:06:35 +05:00
13xforever
54e4f3a721
comment most of the broken stuff, so the project can be compiled 2025-03-12 12:53:35 +05:00
13xforever
06b375b972
update command structure and markup 2025-03-12 09:29:36 +05:00
13xforever
e068a7870b
update command check attribute code 2025-03-10 11:08:35 +05:00
13xforever
5f039d3939
add global usings 2025-03-08 07:01:22 +05:00
Ilya
72dbc4074a
Some performance and code optimizations (#955)
* upgrade deps, remove wrong ppu hashes

* upgrade compiler packages

will require container pull after build

* replace Regex with compiler-generated versions

* use new collection initialization syntax

* configure global defaults for regex

* bump min amd driver version

fixes #950

* add macos version check

fixes #948

* fix #954 (!sudo log date)
2024-05-18 14:26:34 +01:00
13xforever
7879ec893a
fix member fetching
previously only client cache was searched, but now we will fetch the data from server if it's not there
this makes a bunch of stuff async tho
2023-04-21 21:08:10 +05:00
13xforever
055a35d211
fix some commands to be usable in DMs 2023-04-21 02:42:44 +05:00
13xforever
d957936ede
update code with new language and api features 2023-04-21 02:05:59 +05:00
13xforever
6342fcb529
add command to automatically rename any specified user
this does not enforce the name; useful in case auto check for rule 7 failed
2022-12-05 13:59:16 +05:00
13xforever
42df40833f
when removing force rename, do not remove nickname
most of the time it's not needed, and it saves on api calls
2022-12-05 13:53:46 +05:00
13xforever
92751ba6e9 use file-scoped namespaces to reduce nesting
some formatting might be fucked
2022-06-30 00:59:46 +05:00
13xforever
a2b26361d8 try to use username when it's better than the nickname 2021-05-01 23:58:39 +05:00
13xforever
42d6d84bbb fix issues with attribute usage 2021-05-01 20:14:00 +05:00
13xforever
c41c264e42 replace .Respond() with .Channel.SendMessage()
this should fix all the issues that cropped up after the semantics change in recent library builds
2021-05-01 01:54:04 +05:00
13xforever
20a93caae2 GroupCommands ignoring Check attributes strikes again 2021-05-01 01:42:25 +05:00
13xforever
73e204c651 allow more characters for !rename command 2021-03-25 23:38:35 +05:00
13xforever
75d99a9477 open some rename commands for regular users 2021-03-10 00:59:46 +05:00
13xforever
6699b27a7b it's anime time for every rule breaker 2021-03-09 16:46:31 +05:00
13xforever
46d35c2ceb remove all private use symbols from usernames 2021-03-09 13:54:37 +05:00
13xforever
a93153e4fb try to use username for nickname instead 2021-03-02 18:41:13 +05:00
13xforever
9f0dd8e49b fix some bot-related issues in !rename group 2021-03-02 17:52:43 +05:00
13xforever
13ec4bdecc do not permaforce nickname changes on bots, and remove restrictions 2021-02-26 01:13:32 +05:00
13xforever
1c915e05b5 use await using where appropriate 2020-11-14 15:25:20 +05:00
13xforever
e634cb199f fix compiler warnings 2020-10-27 00:35:10 +05:00
13xforever
2130ba7833 add explicit message when no zalgo was removed 2020-10-13 17:24:14 +05:00
13xforever
5f5ddc1af5 command to strip zalgo from any user name 2020-10-08 19:58:23 +05:00
13xforever
264ea9bb31 I guess whitespaces are ok too 2020-09-29 20:20:01 +05:00
13xforever
d199d3534d limit acceptable nicknames for !rename command to prevent future fuckups 2020-09-29 20:09:20 +05:00
13xforever
c19dd01098 allow nicknames with spaces 2019-12-01 20:21:48 +05:00
13xforever
19b3d04a6b do not show empty list 2019-12-01 19:20:33 +05:00
13xforever
473b23dcd4 when using bot commands from DMs there are no guilds or members
also fix nickname reset, as the library handles default value poorly
also do a full check up when the guild becomes available again
2019-12-01 18:58:21 +05:00
13xforever
5c9ff0081d code review changes 2019-12-01 17:24:19 +05:00
Laxynium
6702554ed5 Add misssing ConfigureAsync(false)
Switch to c#8 usings.
Run update of nicknames immediately when guilds are available instead of setting flag that are ready.
2019-11-30 01:16:19 +01:00
Laxynium
e04c4548a0 Adjust names of commands
Check permissions before changing nickname
Display table instead of raw text in list command
Add periodic check if forced nicknames are still valid.
Add GuildId in order to not list forced nicknames added on different guild.
2019-11-30 01:16:19 +01:00
Grzegorz Gruszczyk
cc5de15fd6 Allow admins to force nickname on particular member 2019-11-30 01:16:19 +01:00