.setstatus now accepts 'dnd' too

This commit is contained in:
Kwoth 2017-01-04 17:09:27 +01:00
parent a496467585
commit ce0532335d
3 changed files with 8 additions and 3 deletions

View File

@ -6576,7 +6576,7 @@ namespace NadekoBot.Resources {
}
/// <summary>
/// Looks up a localized string similar to Sets the bot&apos;s status. (Online/Idle/Invisible).
/// Looks up a localized string similar to Sets the bot&apos;s status. (Online/Idle/Dnd/Invisible).
/// </summary>
public static string setstatus_desc {
get {

View File

@ -2857,7 +2857,7 @@
<value>setstatus</value>
</data>
<data name="setstatus_desc" xml:space="preserve">
<value>Sets the bot's status. (Online/Idle/Invisible)</value>
<value>Sets the bot's status. (Online/Idle/Dnd/Invisible)</value>
</data>
<data name="setstatus_usage" xml:space="preserve">
<value>`{0}setstatus Idle`</value>

View File

@ -153,6 +153,8 @@ namespace NadekoBot
return UserStatus.Invisible;
case SettableUserStatus.Idle:
return UserStatus.AFK;
case SettableUserStatus.Dnd:
return UserStatus.DoNotDisturb;
}
return UserStatus.Online;
@ -166,6 +168,9 @@ namespace NadekoBot
Invisible = 2,
Invis = 2,
Idle = 3,
Afk = 3
Afk = 3,
Dnd = 4,
DoNotDisturb = 4,
Busy = 4,
}
}