Commit Graph
136 Commits
Author SHA1 Message Date
Kwoth 8eca8e1dfb Avoid awaiting possible null 2022-07-18 04:45:05 +02:00
Kwoth b12e97a0a7 Added uncommited files. Fixed nullref in update loop when users gain voice xp 2022-07-18 04:44:27 +02:00
Kwoth 99c60459f8 Removed cmd source generator. Commands are no longer partial methods. Compilations should be slightly faster now. Updated packages and adapted drawing code to the new apis. There may be some bugs. 2022-07-18 04:33:50 +02:00
Kwoth 3db194c186 Fixed .clubleave, cleanup 2022-07-15 17:55:56 +02:00
Kwoth 251d5a4df4 Merge branch 'v4' into 4.3 2022-07-13 03:07:03 +02:00
Kwoth f761714f15 Removed transaction from the xp loop as it's causing database locking 2022-07-13 02:32:19 +02:00
Kwoth 93b0e38264 Slight tweaks to xp loop 2022-07-13 02:22:15 +02:00
Kwoth 5f7b030a66 More work on gambling 2022-07-13 02:21:53 +02:00
Kwoth 0b122e8d3f Slight tweaks to xp loop 2022-07-13 01:15:28 +02:00
Kwoth ff779ad494 Merge branch 'v4' into 4.3 2022-07-11 03:33:29 +02:00
Kwoth c9287dc166 Merge branch 'v4' of https://gitlab.com/kwoth/nadekobot into v4 2022-07-11 02:58:01 +02:00
Kwoth 7885106266 Bot should no longer always notify server level gains 2022-07-11 02:57:24 +02:00
Kwoth f41b1fb93c Base for 4.3 work. Split Nadeko.Common into a separate project 2022-07-11 00:06:34 +02:00
Kwoth 744018802f Rewrite xp gain loop. Hopefully faster and fixes xp freeze bugs. 2022-07-07 17:09:11 +00:00
Kwoth f398cddaf0 Replaced all usages of ConcurrentDictionary with NonBlocking.ConcurrentDictionary 2022-06-24 08:37:25 +00:00
Kwoth 210da263ad Abstract away cache. 2 implementations: redis and memory 2022-06-23 13:07:45 +00:00
Kwoth 3744dd287c Revert "Fixed .crypto - some extra fields which were causing deserialization issues"
This reverts commit f65ba100af.
2022-06-17 14:03:30 +02:00
Kwoth f65ba100af Fixed .crypto - some extra fields which were causing deserialization issues 2022-06-17 14:02:38 +02:00
Kwoth 7b5145f116 NadekoBot Patronage system, Search commands improvements + fixes 2022-06-14 07:24:33 +00:00
Kwoth cb865d5012 Updated packages 2022-05-12 23:56:12 +02:00
Kwoth a8767f1136 .clubdesc will now have a nicer response 2022-05-07 08:28:23 +02:00
Kwoth d80cbb4647 Refactors. Cleanup. Refactored responses source gen a little. Parametrized localized strings are now generic. Refactored .cash bank interaction. Updated changelog. Reverted clubapps/ban/unban to use .ToString method and configured it to not have right to left unicode. Added extension methods to SocketMessageComponent akin to ones on the IMessageChannel (RespondConfirm, etc...) 2022-05-05 22:59:07 +02:00
Kwoth 5b5bc278ff - Reaction roles rewritten completely. They now support multiple exclusivity groups per message and level requirements. However they can only be added one by one
- Bot now support much higher XP values for global and server levels
2022-05-05 04:47:31 +02:00
Kwoth 7cb15f5278 Medusa System Added
Read about the medusa system [here](https://nadekobot.readthedocs.io/en/latest/medusa/creating-a-medusa/)
2022-04-16 12:44:46 +00:00
Kwoth e23233ee06 WIP db provider support for Mysql and Postgres 2022-04-11 10:41:26 +00:00
Kwoth 28720ebcea Fixed .clubaccept, .clubban, .clubkick and .clubunban, closes #341 2022-03-21 19:32:31 +01:00
Kwoth 1dc393d2b1 - Moved update loop to a separate method.
- Added optimize flag to GlobalNadeko configuration.
- Added some packages which will be needed soon
2022-03-21 12:01:07 +01:00
Kwoth 578b7fefb4 Slightly reorganized commands in Xp module to make more sense - no functional change 2022-02-26 08:28:44 +01:00
Kwoth 80800673b9 Removed unneeded NadekoSubmodule and NadekoSubmodule<T> classes 2022-02-26 08:11:25 +01:00
Kwoth e0e044278e Fixed an issue with streams not showing online or offline status 2022-02-17 15:23:10 +01:00
Kwoth eda38e64d1 Added many more braces for multiline if's, Improved .crypto command quite a bit and applied locale-specific format 2022-02-04 06:00:17 +01:00
Kwoth ffa2c3f119 Updated editorconfig to (mostly?) require braces around if/else statements, and applied the new formatting rules 2022-02-02 01:44:45 +01:00
Kwoth 0ef2da6f10 Reworked currency service. Some features are missing 2022-01-20 13:22:38 +01:00
Kwoth fa41c5a319 .clubinfo performance improvement and fixed an issue with cyrillic clubs not showing up at all even with correct capitalization 2022-01-16 21:01:33 +01:00
Kwoth f07a855912 More common refactorings like renaming variables, removing empty statements and unused variables, etc 2022-01-09 16:46:08 +01:00
Kwoth 2ce3262d59 Fixed around 140 wrong namings and other refactorings which were marked as warnings 2022-01-08 11:51:41 +01:00
Kwoth 4b6af0e4ef Fixed some crashes in response strings source generator, reorganized more submodules into their folders 2022-01-02 03:49:54 +01:00
Kwoth 9b4eb21321 Using pattern matching for nulls where applicable, discarded unused lambda parameters, cleaned up some classes. Unignored ServerLog commands which was mistakenly ignored due to a .gitignore rule 2022-01-01 08:44:51 +01:00
Kwoth 25eeffa163 - Removed NadekoCommand and Aliases attribute from all commands
- All commands must be marked as partial
- Added [Cmd] Attribute to all commands
- Cmd Attribute comes from the source generator which adds [NadekoCommand] and [Aliases] Attribute to each command
- Should be updated in the future probably to be more performant and maybe add extra data to the commands
- Started reorganizing modules and submodules
2021-12-31 16:05:30 +01:00
Kwoth 82000c97a4 Applied codestyle to all .cs files 2021-12-29 06:07:16 +01:00
Kwoth 723447c7d4 - Updated editorconfig rules to hopefully look a bit nicer.
- Removed configureawait(false) from everywhere as it doesnt' do anything in a console app and just makes the code look ugly
- Started using .WhenAll extension instead of Task.WhenAll to make it look nicer when chaining methods
2021-12-28 21:14:40 +01:00
Kwoth 59f5056035 NadekoBot.Extensions should now be fully annotated with nullable reference types as well as many classes from NadekoBot.Common 2021-12-28 10:44:00 +01:00
Kwoth 1b0392dfab Added and applied styles for private readonly fields, private fields to Extensions and Common folders.
- Some renamings and code cleanups
- Chained method calls, binary expressions and binary patterns will now break into newlines
- Type param constraints and base constructor calls will be on the new line
2021-12-27 03:46:30 +01:00
Kwoth d5fd6aae8e - More code cleanup and codestyle updates
- Fixed some possible nullref exceptions
- Methods signatures now have up to 3 parameters before breakaing down each parameter in a separate line
- Method invocations have the same rule, except the first parameter will be in the same line as the invocation to prevent some ugliness when passing lambas as arguments
- Applied many more codestyles
- Extensions folder fully reformatted
2021-12-26 17:28:39 +01:00
Kwoth b85ba177cd Using declarations and other code reformats 2021-12-26 03:22:45 +01:00
Kwoth d18f9429c6 Kotz's editorconfig styles slightly modified. Target typed new usage. Brackets in expressions used for clarity. 2021-12-26 02:52:09 +01:00
Kwoth da849f7c7b global using NadekoBot.Extensions 2021-12-23 08:04:00 +07:00
Kwoth 93b8bca018 Switch to discord.net 3.0.0 2021-12-23 08:02:23 +07:00
Kwoth f78e4d457c Merged v3 branch updates 2021-12-21 23:36:31 +01:00
Kwoth c66e491ce9 Implicit usings and more global usings 2021-12-21 02:36:47 +01:00