Kwoth
73de20b615
Stagger greet dms
2022-01-06 22:41:49 +01:00
Kwoth
6c39044435
- Using PeriodicTimer in a few places instead of Timer
...
- Some small refactorings
- Fixed reference to non-existent command in bot.yml
2022-01-05 08:00:25 +01:00
Kwoth
f13d7d2c80
Cleaned up some unused/commented code
...
- Small amount of refactoring
- Separated imagesharp extension to ImageSharpExtensions.cs
- Using .join Ienumerable extension instead of string.join in some places
2022-01-04 09:06:42 +01:00
Kwoth
ef49030841
- Added serilog analyzer which will help with fully moving to structured logging
...
- Small code cleanups
2022-01-03 13:38:24 +01:00
Kwoth
ade880a6e6
- .gvc should now properly trigger when a user is already in a gvc and changes his activity
...
- .gvc should now properly detect multiple activities
- Rewrote repeat raw query bitshift to linqtodb query with division (thx kotz)
2022-01-03 06:52:41 +01:00
Kwoth
df3e60b61f
.h cmdName should now work correctly for all commands
2022-01-02 17:16:15 +01:00
Kwoth
ca9fa1b0ac
- Renamed Prefix to prefix
...
- Updated some command string keys which were using command name to use method names now
2022-01-02 16:52:39 +01:00
Kwoth
2edda76218
- Generator will now also add [NadekoDescription] attribute to commands
...
- CustomReactions module (and customreactions db table) renamed to Expressions. This was done to remove confusion about how it relates to discord Reactions (it doesn't, it was created and named before discord reactions existed)
- Permissionv2 db table renamed to Permissions
- Expression command now start with ex/expr and end with the name of the action or setting. For example .exd is expression delete
- CommandStrings will now use methodname as the key, and not the command name (first entry in aliases.yml). In other words aliases.yml and commands.en-US.yml will use the same keys (once again).
2022-01-02 12:01:33 +01:00
Kwoth
9c590668df
Reorganizing module and submodule folders
2022-01-01 16:30:08 +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
f81f9fadd3
Small refactor for ILogCommandService
2022-01-01 07:33:06 +01:00
Kwoth
6eee161b6b
Fixed some NRT warnings in pub/sub mechanism
2021-12-29 06:59:41 +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
9ae030a5c5
Added new rules concerning type constraints and :base() calls. Reformatted attributes folder
2021-12-26 17:45:26 +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
77bbc5ef7a
Removed some unused classes, minor cleanup. Added rider anotations to stop some annoying code suggestions
2021-12-25 02:53:00 +01:00
Kwoth
856dcd048a
Removed obsolete placeholders: %users% %servers% %user% %userfull% %username% %userdiscrim% %useravatar% %id% %uid% %channel %chname% %cid% %sid% %server% %members% %server_time% %shardid% %time% %mention%
2021-12-23 20:46:55 +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
0b8c3b3f2b
Using humanizer to deal with time and string trimming in some cases. Removed unused methods. Currency output format improvement (will use guild locale now for some commands)
2021-12-21 05:16:53 +01:00
Kwoth
c66e491ce9
Implicit usings and more global usings
2021-12-21 02:36:47 +01:00
Kwoth
9223d78849
Removed redundant parenthesis
2021-12-20 03:54:30 +01:00
Kwoth
da2ee0c158
await usings and minor cleanup
2021-12-20 03:02:02 +01:00
Kwoth
1b2017024c
More target-typed new and redundant paranthesis cleanup
2021-12-20 00:33:11 +01:00
Kwoth
345a9e9524
Removed unused modulebehavior struct and interface
2021-12-20 00:18:22 +01:00
Kwoth
cd379fd308
vars and target-typed new
2021-12-20 00:15:39 +01:00
Kwoth
ee33313519
Global usings and file scoped namespaces
2021-12-19 05:14:11 +01:00
Kwoth
9be8140d4d
Added .showembed <msgid> and .showembed #channel <msgid> which will show you embed json from the specified message
2021-12-13 20:29:45 +01:00
Kwoth
219ca39cd1
Added .coordreload which will reload coord.yml when using NadekoBot.Coordinator
...
- bots with more than 1 shard will now use redis strings provider
2021-12-01 09:41:23 +01:00
Kwoth
a2ea806bed
Removed slot.numbers from images.yml as they're no longer used anywhere, thx ala
2021-11-24 01:49:03 +01:00
Kwoth
c050ce2123
Added .emojiadd command
2021-11-21 00:07:19 +01:00
Kwoth
06c20c6fa4
Patreon Access and Refresh Tokens should now be automatically updated
2021-11-17 18:45:49 +00:00
Kwoth
d090aa23ee
Slots redesign nad images moved to images.yml
2021-11-03 14:22:51 +00:00
Kwoth
1af75fd813
Created VotesApi project nad re-worked vote rewards handling
2021-10-15 22:06:30 +00:00
Kwoth
02de25a931
Typo
2021-10-09 19:55:19 +02:00
Kwoth
4532f992cd
Fixed field not preserving inline after string replacements. closes #308
2021-10-09 19:48:54 +02:00
Kwoth
83ea046d5f
Fixed %users% and %shard.usercount% placeholders not showing correct member count
2021-10-05 13:09:52 +02:00
Kwoth
1ac472c676
Urls will now properly work in embeds. Fixes #306
2021-09-27 10:52:14 +02:00
Kwoth
a09be96200
Added DmHelpTextKeywords to data/bot.yml
...
- Bot now sends dm help text ONLY if the message contains one of the keywords specified
- If no keywords are specified, bot will reply to every DM (like before)
- Fixed several commands which used error color for success confirmation messages
2021-09-16 22:52:04 +02:00
Kwoth
81254ed5f6
Added %server.boosters% and %server.boost_level% placeholders
2021-09-16 19:22:05 +02:00
Kwoth
3edcca4927
Updated CHANGELOG.md, removed an unused enum
2021-09-15 01:30:26 +02:00
Kwoth
919bedeae6
Changed (almost) all responses to make them use the new system instead of raw strings
...
- Fixed many invalid string keys
2021-09-06 21:34:53 +02:00
Kwoth
0115d35247
WIP: rework of localized strings, instead of generic LocStr, LocStr is now a struct which contains both the key, and the values which should be put into the value's placeholders. strs' properties are now methods which take values as arguments, and properties if they don't
2021-09-06 21:34:53 +02:00
Kwoth
9d375dccee
wip strings rework, experimenting, nothing works
2021-09-06 21:34:52 +02:00
Kwoth
70288f7670
Second iteration of source generated localized strings
...
- Strs renamed to strs
- Generic params will now default to object instead of string for convenient argument passing
- Many strings changed to use generated properties
2021-09-06 21:34:52 +02:00