diff --git a/src/NadekoBot/Modules/Administration/Administration.cs b/src/NadekoBot/Modules/Administration/Administration.cs
index b2d7333f..8f123251 100644
--- a/src/NadekoBot/Modules/Administration/Administration.cs
+++ b/src/NadekoBot/Modules/Administration/Administration.cs
@@ -689,7 +689,21 @@ namespace NadekoBot.Modules.Administration
await NadekoBot.Client.GetCurrentUser().ModifyStatusAsync(u => u.Game = new Game(game)).ConfigureAwait(false);
- await channel.SendMessageAsync("New game set.").ConfigureAwait(false);
+ await channel.SendMessageAsync("`New game set.`").ConfigureAwait(false);
+ }
+
+ [NadekoCommand, Usage, Description, Aliases]
+ [RequireContext(ContextType.Guild)]
+ [OwnerOnly]
+ public async Task SetStream(IUserMessage umsg, string url, [Remainder] string name = null)
+ {
+ var channel = (ITextChannel)umsg.Channel;
+
+ name = name ?? "";
+
+ await NadekoBot.Client.GetCurrentUser().ModifyStatusAsync(u => u.Game = new Game(name, url, StreamType.Twitch)).ConfigureAwait(false);
+
+ await channel.SendMessageAsync("`New stream set.`").ConfigureAwait(false);
}
[NadekoCommand, Usage, Description, Aliases]
diff --git a/src/NadekoBot/Resources/CommandStrings.Designer.cs b/src/NadekoBot/Resources/CommandStrings.Designer.cs
index b8e071e5..d88c31c4 100644
--- a/src/NadekoBot/Resources/CommandStrings.Designer.cs
+++ b/src/NadekoBot/Resources/CommandStrings.Designer.cs
@@ -5729,6 +5729,33 @@ namespace NadekoBot.Resources {
}
}
+ ///
+ /// Looks up a localized string similar to setstream.
+ ///
+ public static string setstream_cmd {
+ get {
+ return ResourceManager.GetString("setstream_cmd", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Sets the bots stream. First argument is the twitch link, second argument is stream name..
+ ///
+ public static string setstream_desc {
+ get {
+ return ResourceManager.GetString("setstream_desc", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to `{0}setstream https://www.twitch.tv/masterkwoth Developing Nakedo`.
+ ///
+ public static string setstream_usage {
+ get {
+ return ResourceManager.GetString("setstream_usage", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to settopic st.
///
diff --git a/src/NadekoBot/Resources/CommandStrings.resx b/src/NadekoBot/Resources/CommandStrings.resx
index 34935eea..1ef8f630 100644
--- a/src/NadekoBot/Resources/CommandStrings.resx
+++ b/src/NadekoBot/Resources/CommandStrings.resx
@@ -2475,4 +2475,13 @@
`{0}adsarm`
+
+ setstream
+
+
+ Sets the bots stream. First argument is the twitch link, second argument is stream name.
+
+
+ `{0}setstream https://www.twitch.tv/masterkwoth Developing Nakedo`
+
\ No newline at end of file