Added .setstatus

This commit is contained in:
Kwoth
2017-01-04 16:53:39 +01:00
parent 1dad858a65
commit c99d2a9bba
5 changed files with 73 additions and 2 deletions

View File

@@ -485,7 +485,6 @@ namespace NadekoBot.Modules.Administration
{
var sb = new StringBuilder();
var msgs = new List<IMessage>(cnt);
await Context.Channel.GetMessagesAsync(cnt).ForEachAsync(dled => msgs.AddRange(dled)).ConfigureAwait(false);
var title = $"Chatlog-{Context.Guild.Name}/#{Context.Channel.Name}-{DateTime.Now}.txt";

View File

@@ -59,7 +59,16 @@ namespace NadekoBot.Modules.Administration
await NadekoBot.Client.CurrentUser().ModifyAsync(u => u.Username = newName).ConfigureAwait(false);
await Context.Channel.SendConfirmAsync($" Successfully changed name to **{newName}**").ConfigureAwait(false);
await Context.Channel.SendConfirmAsync($"Bot name changed to **{newName}**").ConfigureAwait(false);
}
[NadekoCommand, Usage, Description, Aliases]
[OwnerOnly]
public async Task SetStatus([Remainder] SettableUserStatus status)
{
await NadekoBot.Client.SetStatus(status);
await Context.Channel.SendConfirmAsync($"Bot status changed to **{status}**").ConfigureAwait(false);
}
[NadekoCommand, Usage, Description, Aliases]