Commit Graph
100 Commits
Author SHA1 Message Date
Alan Beatty 5fa39eaa9f Clarity on qdel 2021-12-13 13:07:00 +00:00
Alan Beatty 1c24f95efa Replace RequireUserPemission with UserPerm 2021-12-13 13:06:28 +00:00
Kwoth fcc49dbbdb Made .sinfo slightly better 2021-12-11 16:13:52 +01:00
Kwoth 36c013fbb5 Added .qimport and .qexport commands, fixed some response strings 2021-12-11 15:27:32 +01:00
Kwoth f70e49fc6a Removed unwanted command 2021-12-09 02:07:03 +01:00
Kwoth b7ead22e09 .remindl and .remindrm commands now supports optional 'server' parameter for Administrators which allows them to delete any reminder created on the server 2021-12-09 01:48:39 +01:00
Kwoth 1e6d0806d7 Fixed some console log spam which was incorrectly done by streamrole feature, upped version to 3.0.10 in stats 2021-12-01 07:02:01 +01: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
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
tbodt 9ae3b66fc2 Reduce required permissions for deleting quotes 2021-10-27 01:25:40 +00: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 611817f78a Yes, it's just a warning 2021-09-21 20:59:05 +02:00
Kwoth 2e66137f3e Fixed an exception which was breaking repeater loop 2021-09-21 20:28:37 +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 d2d0cb9e03 - Possible fix for .repeat bug
- Slight adjustment for repeater logic
  - Timer should no longer increase on some repeaters
  - Repeaters should no longer have periods when they're missing from the list
2021-09-16 07:19:08 +02: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 e67f659a8a Added a fix from 1.9 branch for repeaters 2021-09-06 21:34:52 +02:00
Kwoth 5d9320941a Added fixes from 1.9 branch:
- Custom reaction permission error fix
- Local tracks .lq fix after they're loaded from playlist
- Fixed some response strings
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 dc6d17eee7 Repeater and Greet services are now using smarttext instead of crembed 2021-09-06 21:34:51 +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 b59c4064b1 ... (quoteprint) is now using smarttext 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 873eaa290e - fixed remote coordinator being initialized when local one is supposed to be used
- Fixed services loading multiple times
- cleaned up service adding with scrutor
- INService moved from some interfaces to concrete implementation
2021-09-06 21:34:49 +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 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 81406cb46a Cleanup, Added string and repeat limit fixes from 1.9 branch 2021-09-06 21:34:44 +02:00
Kwoth d42705087e - Database namespace is now NadekoBot.Db
- Db related code is now in src/NadekoBot/Db
- Finished major part of the db refactor, but many optimizations are left to be made
2021-09-06 21:34:43 +02:00
Kwoth c127dcd1e3 UnitOfWork compltely removed. GetDbContext now returns a NadekoContext. Changed every access to contect via uow._context to uow 2021-09-06 21:34:42 +02:00
Kwoth 15dac7e3ed Massive cleanup
- Removed GuildConfigs repository, moved to extensions
- Moved StreamSettings extension to GuildConfig extensions
- namespace NadekoBot.Core has been simplified to NadekoBot in many places (more to come)
- Replaced some raw delete queries with simple linqtodb queries
2021-09-06 21:34:41 +02:00
Kwoth c7ff982ec1 Quotes repository removed 2021-09-06 21:34:40 +02:00
Kwoth 32dee3a078 Removed remind repository 2021-09-06 21:34:38 +02:00
Kwoth 91ecf9ca41 Restructured folders and project names, ci should be fixed 2021-09-06 21:29:51 +02:00