From c25b6c14094bb11410e0169c0a0b8b0315a54e45 Mon Sep 17 00:00:00 2001 From: circl Date: Sun, 2 Dec 2018 01:13:37 +0100 Subject: [PATCH] Add help command to prevent confusion. (#124) * Add help command to prvent confusion. * Fix spacing --- discordbot/titanembeds/commands.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/discordbot/titanembeds/commands.py b/discordbot/titanembeds/commands.py index f851d6b..02a5377 100644 --- a/discordbot/titanembeds/commands.py +++ b/discordbot/titanembeds/commands.py @@ -69,13 +69,16 @@ class Commands(): async def invite(self, message): await message.channel.send("You can invite Titan to your server by visiting this link: https://discordapp.com/oauth2/authorize?&client_id=299403260031139840&scope=bot&permissions=641195117") - + async def server(self, message): await message.channel.send("Join the Titan Embeds Discord server! https://discord.gg/pFDDtcN") - + async def shard(self, message): await message.channel.send("This instance of Titan Embeds Discord Bot is running on shard **{}**. There are **{}** shards in total.".format(message.guild.shard_id, self.client.shard_count)) - + + async def help(self, message): + await message.channel.send("Commands available on: https://titanembeds.com/about\nTo setup an embed please visit: https://titanembeds.com/user/dashboard") + async def members(self, message): headers = {"Authorization": self.config["titan-web-app-secret"]} payload = { @@ -118,4 +121,4 @@ class Commands(): if message.guild.me.permissions_in(message.channel).embed_links: await message.channel.send(embed=embed) else: - await message.channel.send("__**Currently Online Embed Members**__\n" + embed_description) \ No newline at end of file + await message.channel.send("__**Currently Online Embed Members**__\n" + embed_description)