Commit Graph

22 Commits

Author SHA1 Message Date
Kwoth
b85ba177cd Using declarations and other code reformats 2021-12-26 03:22:45 +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
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
da2ee0c158 await usings and minor cleanup 2021-12-20 03:02:02 +01:00
Kwoth
ee33313519 Global usings and file scoped namespaces 2021-12-19 05:14:11 +01:00
Kwoth
bc31dae965 Updated packages 2021-12-19 02:34:12 +01:00
Kwoth
a38951b5ad atl will no longer post the translation if it's equivalent to the input message
updated packages
2021-12-17 16:26:14 +01:00
Kwoth
88c005c50e - Removed unneeded package
- Fixed build not working on dotnet sdk older than 5.0.3xx, this was done by downgrading Microsoft.CodeAnalysis.CSharp to 3.8.0
2021-09-06 21:34:54 +02:00
Kwoth
0921d154cc Some work on docker support. Source generator is failing with a weird error. Updated readme and changelog 2021-09-06 21:34:53 +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
0fc5f540d8 - Added Cloneable deep clone source generator nuget package
- Configs are no cloned using generated clone, not by serializing/deserializing
- Arrays/Lists (collections in geneeral) are still not cloned properly
- Removed GetRawData from config as it is no longer needed, new clone is very fast
- Added ICloneable<T> which all configs implement
- Cleaned up config classes/code
2021-09-06 21:34:50 +02:00
Kwoth
3c82c1f919 - Started cleanup of command handler
- Removed IUnloadableService
- Started removing INService (removed it from services which implement behavior interfaces) - wip
- Added scrutor for better service registration - wip
2021-09-06 21:34:49 +02:00
Kwoth
a1ef862382 - small bot.cs cleanup
- creds.yml now loads and reloads properly (from the current directory, like credentials.json)
- added empty creds.yml to repo, and added it to .gitignore
2021-09-06 21:34:49 +02:00
Kwoth
16dd398aa0 - Credentials are now loading from creds.yml
- Removed/commented out obsolete credentials code
- Added missing properties to creds.yml
- Updated README.md with some tasks and progress
2021-09-06 21:34:49 +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
81406cb46a Cleanup, Added string and repeat limit fixes from 1.9 branch 2021-09-06 21:34:44 +02:00
Kwoth
797e93da1d Removed unneeded packages after upgrade to net5 2021-09-06 21:34:43 +02:00
Kwoth
9f6d4ab62f Package upgrades
- Upgraded all packages to latest version
- Removed obsolete code due to version upgrade
- More nullref warnings silenced
2021-09-06 21:34:38 +02:00
Kwoth
38c7f32a76 More cleanup
- Moved all bot files to src/NadekoBot
- Fixed tests path in ci
- Fixed some warnings in MusicService
- Cleaned up csproj slightly
2021-09-06 21:34:37 +02:00
Kwoth
91ecf9ca41 Restructured folders and project names, ci should be fixed 2021-09-06 21:29:51 +02:00
Kwoth
7aca29ae8a Killed history 2021-09-06 21:29:22 +02:00