mirror of
https://gitlab.com/MisterBiggs/multi-bot-tutorial.git
synced 2025-06-16 15:17:25 +00:00
added about function to give info on the bot
This commit is contained in:
parent
be22abcf0d
commit
d1b2f2a079
19
functions.py
19
functions.py
@ -95,3 +95,22 @@ def roadster():
|
|||||||
print("error")
|
print("error")
|
||||||
|
|
||||||
return data
|
return data
|
||||||
|
|
||||||
|
|
||||||
|
def about():
|
||||||
|
"""
|
||||||
|
Just returns information about the bot.
|
||||||
|
"""
|
||||||
|
return {
|
||||||
|
"description": "This is a simple bot used to demonstrate how to easily port the same bot to multiple platforms such as Discord and Telegram",
|
||||||
|
"functions": [
|
||||||
|
(
|
||||||
|
"roadster",
|
||||||
|
"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."),
|
||||||
|
],
|
||||||
|
"repo": "https://gitlab.com/MisterBiggs/multi-bot-tutorial",
|
||||||
|
"blogPost": "https://blog.ansonbiggs.com/",
|
||||||
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user