Added .stondel which makes the bot delete stream online messages after the stream goes offline

This commit is contained in:
Kwoth
2022-04-27 21:57:24 +02:00
parent 24a9a02cc3
commit 39ae070c9d
10 changed files with 2907 additions and 4 deletions

View File

@@ -121,6 +121,18 @@ public partial class Searches
else
await ReplyConfirmLocalizedAsync(strs.stream_off_disabled);
}
[Cmd]
[RequireContext(ContextType.Guild)]
[UserPerm(GuildPerm.ManageMessages)]
public async partial Task StreamOnlineDelete()
{
var newValue = _service.ToggleStreamOnlineDelete(ctx.Guild.Id);
if (newValue)
await ReplyConfirmLocalizedAsync(strs.stream_online_delete_enabled);
else
await ReplyConfirmLocalizedAsync(strs.stream_online_delete_disabled);
}
[Cmd]
[RequireContext(ContextType.Guild)]