Skip to content
This repository was archived by the owner on Feb 7, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions cogs/fun.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,14 @@ async def stroketranslate(self, ctx: ApplicationContext, strok: str):
var = ''.join(arr)
await ctx.respond(f"{var}")

@commands.slash_command(
name='prediction',
description='Randomly predicts a yes/no question.'
)
@option(name="question", description="What do you want to predict?", type=str)
async def prediction(self, ctx: ApplicationContext, question: str):
await ctx.respond(f"My prediction is... **{random.choice(['Yes', 'No'])}!**")


# Initialization
def setup(bot): bot.add_cog(Fun(bot))
7 changes: 0 additions & 7 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,13 +256,6 @@ async def sync(ctx: ApplicationContext):
print(e)
await ctx.respond('An error occured while resyncing. Check console.', ephemeral=True)

@client.slash_command(
name='prediction',
description='Randomly predicts a yes/no question.'
)
@option(name="question", description="What do you want to predict?", type=str)
async def prediction(ctx: ApplicationContext, question:str): await ctx.respond(f"My prediction is... **{random.choice(['Yes', 'No'])}!**")

# Cog Commands (these cannot be moved into a cog)
cogs = client.create_group("cog", "Commands for working with isobot cogs.")

Expand Down