Added a randomness to the meow command so differnt responses can happen

This commit is contained in:
Lilac-Rose
2025-10-16 21:09:39 +02:00
parent d0066ba72b
commit fe6f648c25

View File

@@ -1,6 +1,7 @@
import discord
from discord.ext import commands
from discord import app_commands
import random
class Meow(commands.Cog):
def __init__(self, bot: commands.Bot):
@@ -8,7 +9,10 @@ class Meow(commands.Cog):
@app_commands.command(name="meow")
async def ping(self, interaction: discord.Interaction):
await interaction.response.send_message("Meowwwww~")
meow_list=["Meowwwww~", "Purrrrrr", "Nyaaaaaa", "Meow Meow", "Nya!", "Meow :3"]
meow_index = random.randrange(0,5)
await interaction.response.send_message(meow_list[meow_index])
async def setup(bot: commands.Bot):
await bot.add_cog(Meow(bot))