.ct
command added to Utiliy module, prints current channe's topic
This commit is contained in:
parent
e66615b056
commit
0820c17307
@ -144,6 +144,18 @@ namespace NadekoBot.Modules.Utility
|
||||
}
|
||||
await e.Channel.SendMessage("`List of roles:` \n• " + string.Join("\n• ", e.Server.Roles)).ConfigureAwait(false);
|
||||
});
|
||||
|
||||
|
||||
cgb.CreateCommand(Prefix + "channeltopic")
|
||||
.Alias(Prefix + "ct")
|
||||
.Description($"Sends current channel's topic as a message. | `{Prefix}ct`")
|
||||
.Do(async e =>
|
||||
{
|
||||
var topic = e.Channel.Topic;
|
||||
if (string.IsNullOrWhiteSpace(topic))
|
||||
return;
|
||||
await e.Channel.SendMessage(topic).ConfigureAwait(false);
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user