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
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
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
26ee6ce4d3
Using new .Chunk and .DistinctBy Linq Extensions
2021-12-24 02:10:21 +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
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
Alan Beatty
c42d529016
Fix color for ban DMs with plain text ban message.
2021-12-21 00:00:45 +00: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
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
2d2e54e31e
Bot will now check for permissions when trying to apply punishments
2021-12-05 08:47:10 +01:00
Kwoth
59c0f2f4b3
Added graceful option to die (kill coordinator without killing shards)
2021-12-01 09:47:41 +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
22b452e449
Added .warn weights, improved .warnlog
2021-11-21 02:01:21 +01:00
Alan Beatty
502c5cec07
Add an audit log reason to massban
2021-11-13 14:43:30 -06:00
Alan Beatty
5a681a5194
Add support for hackbans on massban
...
Closes #307
2021-11-13 20:38:01 +00:00
Kaoticz
1d57191700
Fix possible race condition for reaction roles
2021-11-09 10:41:49 +00:00
Alan Beatty
0ebc40b95c
TrimTo to avoid length limit for ban/kick reasons
2021-10-12 17:07:46 -05:00
Kwoth
12146ad2da
Make sure the bot has manageroles permission for .aar
2021-09-22 22:41:00 +02:00
Kwoth
c9e89e1911
- .logignore now supports targeting channels and users
...
- .logignore now lists all ignored channels and users when no parameter is provided
- Renamed and cleaned up some log-related fields
2021-09-21 22:39:24 +02:00
Kwoth
619bee811d
Fixed most of the commands which used wrong error color for confirm messages
2021-09-16 23:09:17 +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
cccb37854c
Added .imageonlychannel / .imageonly to prevent users from posting anything but images in the channel
2021-09-15 01:26:41 +02:00
Kwoth
c12b41ddd1
Added .massban
2021-09-13 17:41:33 +02:00
Kwoth
a5f9ac1540
.boostmsg will now properly show boost, and not greet message
2021-09-13 12:59:47 +02:00
Kwoth
8c5214def2
Ban .warnp will now prune user's messages
2021-09-13 01:30:11 +02:00
Kwoth
d115261536
Fixed .log commands
2021-09-12 22:07:56 +02:00
Kwoth
8ee1160a00
Added .boost, .boostmsg and .boostdel commands which allow you to have customizable messages when someone boosts your server, with auto-deletion support
...
- Updated response embed colors in greet commands
- Updated .greetmsg and .byemsg command help to match the new .boost command help
2021-09-12 20:44:35 +02:00
Kwoth
1df947d54b
.rero now optionally takes a message id to which to attach the reaction roles
2021-09-12 01:07:19 +02:00
Kwoth
8a5539448e
Updated credentials.json references to creds.yml
2021-09-07 16:38:05 +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
4484732f5d
- Fixed counting parameters which have formats in response strings
...
- Almost finished porting localized string keys as methods
- Compiles
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
Kwoth
42d623b696
Replaced access to .Context with .ctx
2021-09-06 21:34:52 +02:00
Kwoth
3c33c55dda
.warnp should accept roles only below your max role. Also added a custom error message
2021-09-06 21:34:52 +02:00