A discord bot.
1

Configure Feed

Select the types of activity you want to include in your feed.

Add fun commands

scoopala7.tngl.sh (Jun 12, 2026, 8:41 PM -0700) 21484e2d 91376ab4

+22 -1
+19
cogs/fun.py
··· 1 + """ 2 + This is a fun cog, it contains commands that are just for fun and don't have any real use. 3 + """ 4 + 5 + import random 6 + import discohook 7 + import time 8 + 9 + @discohook.command.slash('dice', description = 'Roll a dice!') 10 + async def dice_command(interaction): 11 + # Dice! 12 + number = random.randint(1, 6) 13 + text = "You rolled a... (Wait 1 second)" 14 + await interaction.response.send(text) 15 + 16 + # anticipation 17 + time.sleep(1) 18 + text = f"You rolled a {number}!" 19 + await interaction.response.followup(text)
+3 -1
main.py
··· 8 8 import discohook 9 9 from starlette.responses import JSONResponse 10 10 from cogs.ping import ping_command 11 + from cogs.fun import dice_command 11 12 12 13 def run(): 13 14 ··· 53 54 54 55 # Add commands 55 56 app.add_commands( 56 - ping_command 57 + ping_command, 58 + dice_command 57 59 ) 58 60 59 61 # Attach / route for debugging