diff --git a/discordBot.py b/discordBot.py index 86edebd..5b4567e 100644 --- a/discordBot.py +++ b/discordBot.py @@ -52,6 +52,18 @@ async def on_message(message): embed.set_footer(text="Thanks Elon <3") await message.channel.send(embed=embed) + elif message.content.startswith("/about"): + about_data = about() + embed = discord.Embed( + title="About", + url=about_data["blogPost"], + description=about_data["description"], + color=0xFF0000, + ) + for func in about_data["functions"]: + embed.add_field(name=f"/{func[0]}", value=func[1], inline=True) + + await message.channel.send(embed=embed) client.run("TOKEN") diff --git a/functions.py b/functions.py index 69ee436..20ba0e3 100644 --- a/functions.py +++ b/functions.py @@ -109,6 +109,7 @@ def about(): "Provides simple information about the Tesla Roadster launched into space by Elon Musk as a dummy payload to test the Falcon Heavy Rocket", ), ("launch", "Provides details on the next rocket launch happening."), + ("about", "Gives information about the bot."), ], "repo": "https://gitlab.com/MisterBiggs/multi-bot-tutorial", "blogPost": "https://blog.ansonbiggs.com/",