settopic command

This commit is contained in:
Kwoth 2016-01-10 17:13:27 +01:00
parent 4910639591
commit e765d6726b

View File

@ -241,6 +241,15 @@ namespace NadekoBot.Modules
}
});
cgb.CreateCommand(".st").Alias(".settopic")
.Description("Sets a topic on the current channel.")
.Parameter("topic",Discord.Commands.ParameterType.Unparsed)
.Do(async e => {
try {
await e.Channel.Edit(topic: e.GetArg("topic"));
} catch (Exception) { }
});
cgb.CreateCommand(".uid").Alias(".userid")
.Description("Shows user id")
.Parameter("user",Discord.Commands.ParameterType.Required)