mirror of
https://github.com/Lilac-Rose/Lacie.git
synced 2026-08-27 03:07:07 -05:00
Added a randomness to the meow command so differnt responses can happen
This commit is contained in:
@@ -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))
|
||||
Reference in New Issue
Block a user