.boostmsg will now properly show boost, and not greet message

This commit is contained in:
Kwoth
2021-09-13 12:59:47 +02:00
parent 8c5214def2
commit a5f9ac1540
3 changed files with 22 additions and 1 deletions

View File

@@ -41,6 +41,15 @@ namespace NadekoBot.Modules.Administration
await ReplyPendingLocalizedAsync(strs.boostdel_off).ConfigureAwait(false);
}
[NadekoCommand, Aliases]
[RequireContext(ContextType.Guild)]
[UserPerm(GuildPerm.ManageGuild)]
public Task BoostMsg()
{
var boostMessage = _service.GetBoostMessage(ctx.Guild.Id);
return ReplyConfirmLocalizedAsync(strs.boostmsg_cur(boostMessage?.SanitizeMentions()));
}
[NadekoCommand, Aliases]
[RequireContext(ContextType.Guild)]
[UserPerm(GuildPerm.ManageGuild)]
@@ -48,7 +57,7 @@ namespace NadekoBot.Modules.Administration
{
if (string.IsNullOrWhiteSpace(text))
{
await GreetMsg().ConfigureAwait(false);
await BoostMsg().ConfigureAwait(false);
return;
}