From ec7d55c7b54d24905c3875c706126c09968035b5 Mon Sep 17 00:00:00 2001 From: ZR2 Date: Sun, 24 Jan 2016 22:30:28 +1030 Subject: [PATCH] New command Added a setgame command --- NadekoBot/Modules/Administration.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/NadekoBot/Modules/Administration.cs b/NadekoBot/Modules/Administration.cs index 574206bd..6f2dc62f 100644 --- a/NadekoBot/Modules/Administration.cs +++ b/NadekoBot/Modules/Administration.cs @@ -302,6 +302,17 @@ namespace NadekoBot.Modules await client.CurrentUser.Edit(NadekoBot.password, e.GetArg("new_name")); }); + + cgb.CreateCommand(".setgame") + .Description("Sets the bots game.") + .Parameter("set_game", ParameterType.Required) + .Do( e => { + if (e.User.Id != NadekoBot.OwnerID || e.GetArg("set_game") == null) return; + + client.SetGame(e.GetArg("set_game")); + }); + + cgb.CreateCommand(".greet") .Description("Enables or Disables anouncements on the current channel when someone joins the server.")