mirror of
https://github.com/Lilac-Rose/Lacie.git
synced 2026-09-13 03:26:01 -05:00
Added meow command
This commit is contained in:
14
commands/meow.py
Normal file
14
commands/meow.py
Normal file
@@ -0,0 +1,14 @@
|
||||
import discord
|
||||
from discord.ext import commands
|
||||
from discord import app_commands
|
||||
|
||||
class Ping(commands.Cog):
|
||||
def __init__(self, bot: commands.Bot):
|
||||
self.bot = bot
|
||||
|
||||
@app_commands.command(name="meow")
|
||||
async def ping(self, interaction: discord.Interaction):
|
||||
await interaction.response.send_message("Meowwwww~")
|
||||
|
||||
async def setup(bot: commands.Bot):
|
||||
await bot.add_cog(Ping(bot))
|
||||
@@ -430,12 +430,9 @@ class Logger(commands.Cog):
|
||||
|
||||
await self.send_log(role.guild.id, "role_delete", embed)
|
||||
|
||||
async def log_moderation_action(self, guild_id: int, action_type: str, user: discord.User,
|
||||
moderator: discord.User, reason: Optional[str] = None,
|
||||
duration: Optional[str] = None):
|
||||
async def log_moderation_action(self, guild_id: int, action_type: str, user: discord.User, moderator: discord.User, reason: Optional[str] = None, duration: Optional[str] = None):
|
||||
"""
|
||||
Public method to log moderation actions from commands.
|
||||
Call this from your moderation commands.
|
||||
"""
|
||||
color_map = {
|
||||
"warn": discord.Color.yellow(),
|
||||
|
||||
Reference in New Issue
Block a user