New command
Added a setgame command
This commit is contained in:
parent
1471992916
commit
ec7d55c7b5
@ -303,6 +303,17 @@ namespace NadekoBot.Modules
|
|||||||
await client.CurrentUser.Edit(NadekoBot.password, e.GetArg("new_name"));
|
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")
|
cgb.CreateCommand(".greet")
|
||||||
.Description("Enables or Disables anouncements on the current channel when someone joins the server.")
|
.Description("Enables or Disables anouncements on the current channel when someone joins the server.")
|
||||||
.Do(async e => {
|
.Do(async e => {
|
||||||
|
Loading…
Reference in New Issue
Block a user