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
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
edd60ae656
- Removed usage of obsolete methods
...
- Removed unneeded argument from ValidateQuery in Searches.cs
- Using split query when loading all guild configs
2021-12-20 03:48:42 +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
77fb47183f
Possible fix for #322
2021-12-18 22:07:03 +01:00
Kwoth
4c1b911cb7
Inrole string fix
2021-12-17 15:59:18 +01:00
Kwoth
83daf3c30f
Made .showembed always output lowercase field names and no null values
2021-12-14 19:41:07 +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
Alan Beatty
1c24f95efa
Replace RequireUserPemission
with UserPerm
2021-12-13 13:06:28 +00:00
Kwoth
0a029a7847
Added image attachment support for .ea if you omit imageUrl
2021-11-21 00:22:10 +01:00
Kwoth
c050ce2123
Added .emojiadd command
2021-11-21 00:07:19 +01:00
Kaoticz
92365fd22d
Fixed memory counter not refreshing over time
2021-10-17 22:56:10 +00:00
Kaoticz
2fd7d97025
Corrected memory usage on StatusService
2021-10-15 22:04:30 +00:00
Kwoth
565c1132fa
Changed last few usages of old string based gettext. All strings now use new system. Needs testing
2021-09-06 21:34:53 +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
34d0f66466
- Added NadekoBot.Generators projects which will contain source generators
...
- Implemented initial version of the response strings source generator
- Creates a class with property names equivalent to key names in responses.en-US.json
- Each Property has struct type (with generic type parameters matching the number of string format placeholders) for type safe GetText implementation
- Struct types are readonly refs as they should be ephermal, and only used to pass string keys to GetText
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
468bc5324d
- Fixed calls to SendAsync - they don't require EmbedBuilderService
...
- DmHelpText now uses smarttext and supports user-related placeholders
2021-09-06 21:34:51 +02:00
Kwoth
373e9e920d
- .say replacement fix
...
- .send and .qid now use smarttext instead of crembed
- added + operator for adding string to smarttext
2021-09-06 21:34:51 +02:00
Kwoth
0064df8ae4
- .say now uses new SmartText instead of CREmbed
...
- Added IMessageChannel extensions for sending smarttext
- Added implicit operator from string to smarttext (which just creates smartplaintext instance)
2021-09-06 21:34:51 +02:00
Kwoth
5e4754fa40
- Reworked embed builder
...
- Use IEmbedBuilderService to create embed builders
- Wrapped embed builder and using IEmbedBuilder
2021-09-06 21:34:51 +02:00
Kwoth
5b4daa9dd3
All .AddField calls no longer use builder
...
- Cleaned up convertlist and listserver embeds slightly
2021-09-06 21:34:50 +02:00
Kwoth
a17d0afc7d
all calls to .WithAuthor and .WithFooter no longer use their respective builders
2021-09-06 21:34:50 +02:00
Kwoth
cbecd823c1
Cleaned up embedbuilder calls to use parameters instead of footer builder
2021-09-06 21:34:50 +02:00
Kwoth
656db01aca
- removed unused attributes on commands
...
- Removed some commented out files
2021-09-06 21:34:48 +02:00
Kwoth
49f9b96755
One of the last major cleanups. All NadekoBot.Core.* namespaces renamed to NadekoBot.*
2021-09-06 21:34:48 +02:00
Kwoth
c86bf6f300
- NadekoBot class renamed to Bot
...
- Implemented grpc based coordinator. Supports restarting, killing single or all shards, as well as getting current shard statuses. (Adaptation of the one used by the public bot)
- Coord is setup via coord.yml file
- Methods from SelfService which deal with shard/bot restart etc have been moved to ICoordinator (with GrpcRemoteCoordinator being the default implementation atm)
- Vastly simplified NadekoBot/Program.cs
2021-09-06 21:34:46 +02:00
Kwoth
d8c7cdc7f4
Changed all == null to is null and all !(* == null) to * is not null
2021-09-06 21:34:44 +02:00
Kwoth
91ecf9ca41
Restructured folders and project names, ci should be fixed
2021-09-06 21:29:51 +02:00