discord bot

Former-commit-id: 0eea6aa88e
group-chat
Kye 1 year ago
parent 95b349b1d8
commit 2b07a5b875

@ -21,7 +21,7 @@ async def greet(ctx):
await ctx.send(f'Hello, {ctx.author.name}!') await ctx.send(f'Hello, {ctx.author.name}!')
@bot.command() @bot.command()
async def generate_video(ctx, *, description: str): async def run(ctx, *, description: str):
"""Generates a video based on the given description.""" """Generates a video based on the given description."""
response = agent.run(description) # Assuming the response provides information or a link to the generated video response = agent.run(description) # Assuming the response provides information or a link to the generated video
await ctx.send(response) await ctx.send(response)
@ -31,7 +31,7 @@ async def help_me(ctx):
"""Provides a list of commands and their descriptions.""" """Provides a list of commands and their descriptions."""
help_text = """ help_text = """
- `!greet`: Greets you. - `!greet`: Greets you.
- `!generate_video [description]`: Generates a video based on the given description. - `!run [description]`: Generates a video based on the given description.
- `!help_me`: Provides this list of commands and their descriptions. - `!help_me`: Provides this list of commands and their descriptions.
""" """
await ctx.send(help_text) await ctx.send(help_text)

Loading…
Cancel
Save