Added .coordreload which will reload coord.yml when using NadekoBot.Coordinator

- bots with more than 1 shard will now use redis strings provider
This commit is contained in:
Kwoth
2021-12-01 09:41:23 +01:00
parent 1e6d0806d7
commit 219ca39cd1
8 changed files with 37 additions and 7 deletions

View File

@@ -506,6 +506,14 @@ namespace NadekoBot.Modules.Administration
_strings.Reload();
await ReplyConfirmLocalizedAsync(strs.bot_strings_reloaded).ConfigureAwait(false);
}
[NadekoCommand, Aliases]
[OwnerOnly]
public async Task CoordReload()
{
await _coord.Reload();
await ctx.OkAsync();
}
private static UserStatus SettableUserStatusToUserStatus(SettableUserStatus sus)
{