.setstatus now accepts 'dnd' too
This commit is contained in:
parent
a496467585
commit
ce0532335d
@ -6576,7 +6576,7 @@ namespace NadekoBot.Resources {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized string similar to Sets the bot's status. (Online/Idle/Invisible).
|
/// Looks up a localized string similar to Sets the bot's status. (Online/Idle/Dnd/Invisible).
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static string setstatus_desc {
|
public static string setstatus_desc {
|
||||||
get {
|
get {
|
||||||
|
@ -2857,7 +2857,7 @@
|
|||||||
<value>setstatus</value>
|
<value>setstatus</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="setstatus_desc" xml:space="preserve">
|
<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>
|
||||||
<data name="setstatus_usage" xml:space="preserve">
|
<data name="setstatus_usage" xml:space="preserve">
|
||||||
<value>`{0}setstatus Idle`</value>
|
<value>`{0}setstatus Idle`</value>
|
||||||
|
@ -153,6 +153,8 @@ namespace NadekoBot
|
|||||||
return UserStatus.Invisible;
|
return UserStatus.Invisible;
|
||||||
case SettableUserStatus.Idle:
|
case SettableUserStatus.Idle:
|
||||||
return UserStatus.AFK;
|
return UserStatus.AFK;
|
||||||
|
case SettableUserStatus.Dnd:
|
||||||
|
return UserStatus.DoNotDisturb;
|
||||||
}
|
}
|
||||||
|
|
||||||
return UserStatus.Online;
|
return UserStatus.Online;
|
||||||
@ -166,6 +168,9 @@ namespace NadekoBot
|
|||||||
Invisible = 2,
|
Invisible = 2,
|
||||||
Invis = 2,
|
Invis = 2,
|
||||||
Idle = 3,
|
Idle = 3,
|
||||||
Afk = 3
|
Afk = 3,
|
||||||
|
Dnd = 4,
|
||||||
|
DoNotDisturb = 4,
|
||||||
|
Busy = 4,
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user