1
Fork 0
mirror of https://gitlab.com/Kwoth/nadekobot.git synced 2024-10-02 20:13:13 +00:00
Commit graph

1333 commits

Author SHA1 Message Date
Kwoth
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
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
78d077ce71 Added initial model for future migration to creds.yml 2021-09-06 21:34:49 +02:00
Kwoth
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
2021-09-06 21:34:49 +02:00
Kwoth
34f6902c95 coord.yml updated 2021-09-06 21:34:48 +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
44fdd4ff23 Added ICoordinator for bots which arent' sharded (the ones which won't be using NadekoBot.Coordinator) 2021-09-06 21:34:47 +02:00
Kwoth
77904a3b00 Improved .shardstats format + small cleanup 2021-09-06 21:34:47 +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
797e93da1d Removed unneeded packages after upgrade to net5 2021-09-06 21:34:43 +02:00
Kwoth
c6e1924ba0 Removed unused json files 2021-09-06 21:34:43 +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
51a4499809 DiscordUser repository removed 2021-09-06 21:34:41 +02:00
Kwoth
f34951c81c Removed waifu repository 2021-09-06 21:34:41 +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
56f28568d1 Removed cr repostiory, started a general purpose db extensions file 2021-09-06 21:34:39 +02:00
Kwoth
a6c7f1a629 Removed music playlist and warning repositories 2021-09-06 21:34:39 +02:00
Kwoth
a3fa8224c4 Removed plantedcurrency repository 2021-09-06 21:34:39 +02:00
Kwoth
32dee3a078 Removed remind repository 2021-09-06 21:34:38 +02:00
Kwoth
afaeab40a3 Removed sar repository 2021-09-06 21:34:38 +02:00
Kwoth
ae59bac118 Removed poll repository 2021-09-06 21:34:38 +02:00
Kwoth
dbf51a8a1b Removed clubs repository and moved functionality to an extension 2021-09-06 21:34:38 +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
6b92cb3c89 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:29 +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