add garfbot help
All checks were successful
Garfbot CI/CD Deployment / Deploy (push) Successful in 4s
All checks were successful
Garfbot CI/CD Deployment / Deploy (push) Successful in 4s
This commit is contained in:
61
garfmain.py
61
garfmain.py
@ -107,6 +107,65 @@ async def on_message(message):
|
|||||||
)
|
)
|
||||||
await garfield.garfpic(message, prompt)
|
await garfield.garfpic(message, prompt)
|
||||||
|
|
||||||
|
# GarfBot help
|
||||||
|
elif lower.strip() == "garfbot help":
|
||||||
|
embed = discord.Embed(title="**Need help?**", color=0x4D4D4D)
|
||||||
|
embed.add_field(
|
||||||
|
name="hey garfield `prompt`", value="*Responds with text.*", inline=True
|
||||||
|
)
|
||||||
|
embed.add_field(
|
||||||
|
name="garfpic `prompt`", value="*Responds with an image.*", inline=True
|
||||||
|
)
|
||||||
|
embed.add_field(
|
||||||
|
name="garfping `target`",
|
||||||
|
value="*Responds with iputils-ping result from target.*",
|
||||||
|
inline=True,
|
||||||
|
)
|
||||||
|
embed.add_field(
|
||||||
|
name="garfpic `target`",
|
||||||
|
value="*Responds with dns lookup result from target.*",
|
||||||
|
inline=True,
|
||||||
|
)
|
||||||
|
embed.add_field(
|
||||||
|
name="garfhack `target`",
|
||||||
|
value="*Responds with nmap scan result from target.*",
|
||||||
|
inline=True,
|
||||||
|
)
|
||||||
|
embed.add_field(
|
||||||
|
name="garfwiki `query`",
|
||||||
|
value="*Garfbot looks up a wikipedia article and will summarize it for you.*",
|
||||||
|
inline=True,
|
||||||
|
)
|
||||||
|
embed.add_field(
|
||||||
|
name="garfshop `item` `zip`",
|
||||||
|
value="*Responds with 10 grocery items from the nearest Kroger location, cheapest first.*",
|
||||||
|
inline=True,
|
||||||
|
)
|
||||||
|
embed.add_field(
|
||||||
|
name="garfqr `text`",
|
||||||
|
value="*Create a QR code for any string up to 1000 characters.*",
|
||||||
|
inline=True,
|
||||||
|
)
|
||||||
|
embed.add_field(
|
||||||
|
name="garfbot response `add` `trigger` `response`",
|
||||||
|
value='*Add a GarfBot auto response for your server. Use "quotes" if you like.*',
|
||||||
|
inline=True,
|
||||||
|
)
|
||||||
|
embed.add_field(
|
||||||
|
name="garfbot response `remove` `trigger`",
|
||||||
|
value="*Remove a GarfBot auto response for your server.*",
|
||||||
|
inline=True,
|
||||||
|
)
|
||||||
|
embed.add_field(
|
||||||
|
name="garfbot response `list`",
|
||||||
|
value="*List current GarfBot auto responses for your server.*",
|
||||||
|
inline=True,
|
||||||
|
)
|
||||||
|
embed.add_field(
|
||||||
|
name="garfbot help", value="*Show a list of these commands.*", inline=True
|
||||||
|
)
|
||||||
|
await message.channel.send(embed=embed)
|
||||||
|
|
||||||
# Army of Dawn Server only!!
|
# Army of Dawn Server only!!
|
||||||
elif message.guild and message.guild.id == 719605634772893757:
|
elif message.guild and message.guild.id == 719605634772893757:
|
||||||
await aod_message(garfbot, message)
|
await aod_message(garfbot, message)
|
||||||
@ -125,7 +184,7 @@ async def on_message(message):
|
|||||||
break
|
break
|
||||||
|
|
||||||
|
|
||||||
# Run Garfbot
|
# Run GarfBot
|
||||||
async def garfbot_connect():
|
async def garfbot_connect():
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
|
Reference in New Issue
Block a user