Commit Graph

  • 79f785cd14 Updated CHANGELOG.md Kwoth 2021-08-05 20:36:00 +02:00
  • a7e2e1890c - Almopst completed windows from source guide - Added output and src/NadekoBot/output folders to gitignore Kwoth 2021-08-05 20:31:38 +02:00
  • 0921d154cc Some work on docker support. Source generator is failing with a weird error. Updated readme and changelog Kwoth 2021-08-04 13:26:48 +02:00
  • 0107f7bad3 Removed cmd-versions.json (?) and added some explanatory README.md's for individual projects Kwoth 2021-08-03 23:51:25 +02:00
  • ddee6bc7c7 Removed nmearly all unused strings from responses.en-US.json. Left a few which might get used in the near future Kwoth 2021-08-02 00:25:55 +02:00
  • 991da3ed73 Removed around a half of unused response strings Kwoth 2021-08-01 23:58:47 +02:00
  • 565c1132fa Changed last few usages of old string based gettext. All strings now use new system. Needs testing Kwoth 2021-07-31 23:39:19 +02:00
  • 919bedeae6 Changed (almost) all responses to make them use the new system instead of raw strings - Fixed many invalid string keys Kwoth 2021-07-30 22:42:10 +02:00
  • 4484732f5d - Fixed counting parameters which have formats in response strings - Almost finished porting localized string keys as methods - Compiles Kwoth 2021-07-27 13:07:23 +02:00
  • 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 Kwoth 2021-07-26 20:08:02 +02:00
  • 9d375dccee wip strings rework, experimenting, nothing works Kwoth 2021-07-25 19:25:48 +02:00
  • 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 Kwoth 2021-07-24 20:41:07 +02:00
  • 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 Kwoth 2021-07-23 19:01:26 +02:00
  • e67f659a8a Added a fix from 1.9 branch for repeaters Kwoth 2021-07-21 18:55:08 +02:00
  • b84f40def6 - Initial work on Dockerfile - Updated README.md with more information - Added some todos Kwoth 2021-07-18 09:16:42 +02:00
  • 971b5078b7 Updated readme Kwoth 2021-07-18 00:00:01 +02:00
  • 711b2e1dde updated README.md Kwoth 2021-07-16 23:58:57 +02:00
  • ff82c01291 Updated changelog Kwoth 2021-07-15 23:30:34 +02:00
  • 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 Kwoth 2021-07-14 23:58:34 +02:00
  • 42d623b696 Replaced access to .Context with .ctx Kwoth 2021-07-14 21:51:15 +02:00
  • 3c33c55dda .warnp should accept roles only below your max role. Also added a custom error message Kwoth 2021-07-13 23:58:16 +02:00
  • 71da4d11c0 - Removed static color fields - Removed unused code - BanTemplate will get error color from bot config Kwoth 2021-07-12 21:10:39 +02:00
  • 0e81f2abf4 Upped version to beta2 Kwoth 2021-07-12 21:05:33 +02:00
  • 8fb7239100 - Updated creds_example.yml - Added credentials.json -> creds.yml migration - Migrated credentials.json fields are: - Token - OwnerIds - GoogleApiKey - OsuApiKey - CleverbotApiKey - TotalShards (although you should set this from Coordinator's coord.yml TotalShards, so this setting will usually have no effect) - PatreonAccessToken and PatreonCampaignId - VotesUrl and VotesToken - BotListToken - RedisOptions - LocationIqApiKey and TimezoneDbApiKey - CoinmarketcapApiKey Kwoth 2021-07-12 21:03:43 +02:00
  • 0b71e9c28f - Removed some duplicated code from custom reactions - CREmbed completely removed and replaced by SmartText Kwoth 2021-07-12 03:02:38 +02:00
  • 9f6cbe0929 ban templates will now use smarttext instead of crembed Kwoth 2021-07-12 02:51:55 +02:00
  • dc6d17eee7 Repeater and Greet services are now using smarttext instead of crembed Kwoth 2021-07-12 02:26:31 +02:00
  • 468bc5324d - Fixed calls to SendAsync - they don't require EmbedBuilderService - DmHelpText now uses smarttext and supports user-related placeholders Kwoth 2021-07-12 02:07:38 +02:00
  • b59c4064b1 ... (quoteprint) is now using smarttext Kwoth 2021-07-12 01:48:56 +02:00
  • 373e9e920d - .say replacement fix - .send and .qid now use smarttext instead of crembed - added + operator for adding string to smarttext Kwoth 2021-07-12 01:45:40 +02:00
  • 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) Kwoth 2021-07-11 23:37:19 +02:00
  • 236c286278 Added SmartText and inheritors SmartPlainText and SmartEmbedText which will replace CREmbed in the future Kwoth 2021-07-10 23:31:12 +02:00
  • 5e4754fa40 - Reworked embed builder - Use IEmbedBuilderService to create embed builders - Wrapped embed builder and using IEmbedBuilder Kwoth 2021-07-09 22:23:19 +02:00
  • 5b4daa9dd3 All .AddField calls no longer use builder - Cleaned up convertlist and listserver embeds slightly Kwoth 2021-07-08 20:01:42 +02:00
  • a17d0afc7d all calls to .WithAuthor and .WithFooter no longer use their respective builders Kwoth 2021-07-08 02:54:55 +02:00
  • cbecd823c1 Cleaned up embedbuilder calls to use parameters instead of footer builder Kwoth 2021-07-07 22:52:47 +02:00
  • ac9f84715b - Recreated cleanup migration with discorduser default values - Using LinqToDb UpdateOrInsert for .EnsureUserCreated Kwoth 2021-07-07 02:32:56 +02:00
  • 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 Kwoth 2021-07-06 17:08:16 +02:00
  • a8a4c9fb44 - NoPublicBotAttribute will now be properly ignored when built with GlobalNadeko configuration - Added ILogCommandsService which will have dummy implementation on public bot, this means Logging Commands will be present on public bot to pull up help etc - When .ve is enabled, NoPublicBot commands will show a nicer error message with link to selfhosting guide (thx ene) - Fixed xp gain and .xp command not working on new users - General cleanup Kwoth 2021-07-05 21:14:30 +02:00
  • fd35d3a836 - Cleaned up completed todos - Config Data won't be copied every time it's accessed now, but YamlDotNet doesnt' support records, so data is dangerously mutable, needs solution Kwoth 2021-07-04 23:48:17 +02:00
  • 4c0c3c9228 Refactored typereaders to use DI instead of getting services manually Kwoth 2021-07-03 23:16:53 +02:00
  • 3cc34bfdc3 Changed all .GetService to .GetRequiredService because no service should be ever missing. However most of these should be removed in one of the future patches. Kwoth 2021-07-03 01:52:58 +02:00
  • aeb6f8662c Early behavior fixups: - Priorities are now higher number -> higher priority - Priorities are now actually respected - Early behaviors now print custom messages when they perform an action (Filter trigger, blacklist, poll vote, etc) - small cleanup Kwoth 2021-07-03 01:46:32 +02:00
  • e681978f83 - xp template reload now uses new pubsub - multiplexer.GetSubscriber().subscribe is no longer used in any service - fixed some build warnings Kwoth 2021-07-03 00:57:47 +02:00
  • 941d393971 Stream follows now use new pubsub, cleanup Kwoth 2021-07-03 00:41:11 +02:00
  • 35d5260538 images reload and guild leave will now use new pubsub Kwoth 2021-07-03 00:02:26 +02:00
  • 65b4c1fab7 - Owner only attributes will now use fresh creds every time (no need for restart for owner only commands to start working once creds are changed) - setgame/setstream use the new pubsub (also setstream will actually apply to all shards now) - setgame/setstream moved to SelfService - small cleanup Kwoth 2021-07-02 23:49:03 +02:00
  • 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 Kwoth 2021-07-02 17:11:07 +02:00
  • 9f34f8f00f Don't load executor behaviors as a dep, but initialize after all services are loaded. Experimenting on services Kwoth 2021-07-01 23:53:06 +02:00
  • 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 Kwoth 2021-06-28 23:20:02 +02:00
  • 1e90d7f7bb Small cleanup - fixed some namespaces and moved files Kwoth 2021-06-27 17:11:23 +02:00
  • 670b0aca96 - Bot now takes shard id (optional) and total shards (optional) command line arguments (changed from shard id and parent process id) - Sharding with coordinator now works properly - Documented creds.yml RestartCommand - it has no effect when coordinator is starting the bot - Regenerated creds_example.yml - Removed all db migrators as the v3 requires the user to have updated 2.x all the way - TotalShards in creds.yml gets overriden by coord.yml's TotalShards if the bot is ran through coordinator (more precisely, by the command line argument to the bot) - Coordinator now runs on http://localhost:3442 by default, you can change this in appsettings.json - This is done because of macos https issues - Primarily because https for regular users is a massive hassle. Coordinator shouldn't be exposed anyway - Minor cleanup Kwoth 2021-06-25 19:14:34 +02:00
  • 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 Kwoth 2021-06-24 15:43:53 +02:00
  • 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 Kwoth 2021-06-23 18:11:52 +02:00
  • 78d077ce71 Added initial model for future migration to creds.yml Kwoth 2021-06-22 12:14:27 +02:00
  • 1ca8f188cd - Removed all migrations, added squash instead which will build the database, prerequisite for this migration to be skipped is to be on the latest version of 2.x before moving over - Added cleanup migration, it will clean the ef migration history, and delete unused fields - Started working on README.md Kwoth 2021-06-21 09:55:53 +02:00
  • 34f6902c95 coord.yml updated Kwoth 2021-06-21 06:06:42 +02:00
  • 656db01aca - removed unused attributes on commands - Removed some commented out files Kwoth 2021-06-21 02:24:11 +02:00
  • 49f9b96755 One of the last major cleanups. All NadekoBot.Core.* namespaces renamed to NadekoBot.* Kwoth 2021-06-20 13:03:00 +02:00
  • 44fdd4ff23 Added ICoordinator for bots which arent' sharded (the ones which won't be using NadekoBot.Coordinator) Kwoth 2021-06-20 10:46:19 +02:00
  • 77904a3b00 Improved .shardstats format + small cleanup Kwoth 2021-06-20 06:15:30 +02:00
  • 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 Kwoth 2021-06-19 13:13:54 +02:00
  • d8c7cdc7f4 Changed all == null to is null and all !(* == null) to * is not null Kwoth 2021-06-19 08:24:09 +02:00
  • 81406cb46a Cleanup, Added string and repeat limit fixes from 1.9 branch Kwoth 2021-06-19 07:21:10 +02:00
  • 797e93da1d Removed unneeded packages after upgrade to net5 Kwoth 2021-06-19 06:18:07 +02:00
  • c6e1924ba0 Removed unused json files Kwoth 2021-06-19 06:10:28 +02:00
  • 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 Kwoth 2021-06-19 06:08:09 +02:00
  • c127dcd1e3 UnitOfWork compltely removed. GetDbContext now returns a NadekoContext. Changed every access to contect via uow._context to uow Kwoth 2021-06-19 05:16:27 +02:00
  • 51a4499809 DiscordUser repository removed Kwoth 2021-06-19 05:07:27 +02:00
  • f34951c81c Removed waifu repository Kwoth 2021-06-19 04:49:49 +02:00
  • 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 Kwoth 2021-06-19 03:32:48 +02:00
  • c7ff982ec1 Quotes repository removed Kwoth 2021-06-18 22:53:44 +02:00
  • 56f28568d1 Removed cr repostiory, started a general purpose db extensions file Kwoth 2021-06-18 22:32:41 +02:00
  • a6c7f1a629 Removed music playlist and warning repositories Kwoth 2021-06-18 22:22:30 +02:00
  • a3fa8224c4 Removed plantedcurrency repository Kwoth 2021-06-18 09:00:55 +02:00
  • 32dee3a078 Removed remind repository Kwoth 2021-06-18 08:53:06 +02:00
  • afaeab40a3 Removed sar repository Kwoth 2021-06-18 08:49:06 +02:00
  • ae59bac118 Removed poll repository Kwoth 2021-06-18 08:34:03 +02:00
  • dbf51a8a1b Removed clubs repository and moved functionality to an extension Kwoth 2021-06-18 07:33:42 +02:00
  • 9f6d4ab62f Package upgrades - Upgraded all packages to latest version - Removed obsolete code due to version upgrade - More nullref warnings silenced Kwoth 2021-06-18 04:49:32 +02:00
  • 38c7f32a76 More cleanup - Moved all bot files to src/NadekoBot - Fixed tests path in ci - Fixed some warnings in MusicService - Cleaned up csproj slightly Kwoth 2021-06-18 04:00:05 +02:00
  • 6b92cb3c89 More cleanup - Moved all bot files to src/NadekoBot - Fixed tests path in ci - Fixed some warnings in MusicService - Cleaned up csproj slightly Kwoth 2021-06-18 04:00:05 +02:00
  • 91ecf9ca41 Restructured folders and project names, ci should be fixed Kwoth 2021-06-17 23:40:48 +02:00
  • 7aca29ae8a Killed history Kwoth 2021-09-06 21:29:22 +02:00