Merge remote-tracking branch 'refs/remotes/Kwoth/master'
This commit is contained in:
commit
75146241d9
@ -197,6 +197,8 @@ namespace NadekoBot.Commands {
|
|||||||
|
|
||||||
AnnouncementsDictionary[e.Server.Id].GreetText = e.GetArg("msg");
|
AnnouncementsDictionary[e.Server.Id].GreetText = e.GetArg("msg");
|
||||||
await e.Send("New greet message set.");
|
await e.Send("New greet message set.");
|
||||||
|
if (!AnnouncementsDictionary[e.Server.Id].Greet)
|
||||||
|
await e.Send("Enable greet messsages by typing `.greet`");
|
||||||
});
|
});
|
||||||
|
|
||||||
cgb.CreateCommand(".bye")
|
cgb.CreateCommand(".bye")
|
||||||
@ -225,6 +227,8 @@ namespace NadekoBot.Commands {
|
|||||||
|
|
||||||
AnnouncementsDictionary[e.Server.Id].ByeText = e.GetArg("msg");
|
AnnouncementsDictionary[e.Server.Id].ByeText = e.GetArg("msg");
|
||||||
await e.Send("New bye message set.");
|
await e.Send("New bye message set.");
|
||||||
|
if (!AnnouncementsDictionary[e.Server.Id].Bye)
|
||||||
|
await e.Send("Enable bye messsages by typing `.bye`");
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -315,15 +315,13 @@ namespace NadekoBot.Modules
|
|||||||
|
|
||||||
cgb.CreateCommand(".setgame")
|
cgb.CreateCommand(".setgame")
|
||||||
.Description("Sets the bots game.")
|
.Description("Sets the bots game.")
|
||||||
.Parameter("set_game", ParameterType.Required)
|
.Parameter("set_game", ParameterType.Unparsed)
|
||||||
.Do( e => {
|
.Do(e => {
|
||||||
if (e.User.Id != NadekoBot.OwnerID || e.GetArg("set_game") == null) return;
|
if (e.User.Id != NadekoBot.OwnerID || e.GetArg("set_game") == null) return;
|
||||||
|
|
||||||
client.SetGame(e.GetArg("set_game"));
|
client.SetGame(e.GetArg("set_game"));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
cgb.CreateCommand(".checkmyperms")
|
cgb.CreateCommand(".checkmyperms")
|
||||||
.Description("Checks your userspecific permissions on this channel.")
|
.Description("Checks your userspecific permissions on this channel.")
|
||||||
.Do(async e => {
|
.Do(async e => {
|
||||||
|
Loading…
Reference in New Issue
Block a user