Add help command to prevent confusion. (#124)

* Add help command to prvent confusion.

* Fix spacing
This commit is contained in:
circl 2018-12-02 01:13:37 +01:00 committed by Jeremy "EndenDragon" Zhang
parent 039f64c301
commit c25b6c1409

View File

@ -69,13 +69,16 @@ class Commands():
async def invite(self, message): 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") 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): async def server(self, message):
await message.channel.send("Join the Titan Embeds Discord server! https://discord.gg/pFDDtcN") await message.channel.send("Join the Titan Embeds Discord server! https://discord.gg/pFDDtcN")
async def shard(self, message): 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)) 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): async def members(self, message):
headers = {"Authorization": self.config["titan-web-app-secret"]} headers = {"Authorization": self.config["titan-web-app-secret"]}
payload = { payload = {
@ -118,4 +121,4 @@ class Commands():
if message.guild.me.permissions_in(message.channel).embed_links: if message.guild.me.permissions_in(message.channel).embed_links:
await message.channel.send(embed=embed) await message.channel.send(embed=embed)
else: else:
await message.channel.send("__**Currently Online Embed Members**__\n" + embed_description) await message.channel.send("__**Currently Online Embed Members**__\n" + embed_description)