summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-03-15 16:06:15 +0100
committerschneefux <schneefux+commit@schneefux.xyz>2017-03-15 16:06:15 +0100
commitd10b8e4df90e1324be7cd31aa7654f3572d54cb9 (patch)
tree4c8825f6a442962524cae8a1fd8d00502ead5c7c
parenta134ef3c7367269a1baafca86b1b69acdc06587b (diff)
downloaddiscordbot-d10b8e4df90e1324be7cd31aa7654f3572d54cb9.tar.gz
discordbot-d10b8e4df90e1324be7cd31aa7654f3572d54cb9.zip
add about command
-rw-r--r--main.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/main.py b/main.py
index 63d44d8..d071350 100644
--- a/main.py
+++ b/main.py
@@ -57,6 +57,24 @@ async def on_ready():
name="alpha.vainsocial.com"))
+@bot.command()
+async def about():
+ """Print invite links."""
+ emb = discord.Embed(
+ title="Vainsocial Discord bot",
+ description="Built by the Vainsocial development team using the MadGlory API."
+ )
+ emb.add_field(name="Website",
+ value="https://alpha.vainsocial.com")
+ emb.add_field(name="Bot invite link",
+ value="https://discordapp.com/oauth2/authorize?&client_id=287297889024213003&scope=bot")
+ emb.add_field(name="Developer Discord",
+ value="https://discord.gg/txTchJY")
+ emb.add_field(name="Twitter",
+ value="https://twitter.com/vainsocial")
+ await bot.say(embed=emb)
+
+
@bot.command(aliases=["v", "vain"])
async def vainsocial(name: str, region: str = None):
"""Retrieves a player's stats."""