mirror of
https://github.com/Paillat-dev/Botator.git
synced 2026-01-02 01:06:19 +00:00
🔧 chore(moderation.py): comment out unfinished ban command to prevent errors during development
🔧 chore(moderation.py): import commands from discord.ext to fix missing reference error
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
import discord
|
import discord
|
||||||
from discord import default_permissions
|
from discord import default_permissions
|
||||||
|
from discord.ext import commands
|
||||||
import os
|
import os
|
||||||
from src.config import debug, curs_data, con_data
|
from src.config import debug, curs_data, con_data
|
||||||
import openai
|
import openai
|
||||||
@@ -10,6 +11,14 @@ class Moderation(discord.Cog):
|
|||||||
def __init__(self, bot: discord.Bot) -> None:
|
def __init__(self, bot: discord.Bot) -> None:
|
||||||
super().__init__()
|
super().__init__()
|
||||||
self.bot = bot
|
self.bot = bot
|
||||||
|
"""
|
||||||
|
@discord.slash_command(
|
||||||
|
name="ban", description="Ban a user from using the bot"
|
||||||
|
)
|
||||||
|
@commands.is_owner()
|
||||||
|
async def ban(self, ctx: discord.ApplicationContext, user: discord.User):
|
||||||
|
pass
|
||||||
|
"""
|
||||||
|
|
||||||
@discord.slash_command(
|
@discord.slash_command(
|
||||||
name="moderation", description="Enable or disable AI moderation & set the rules"
|
name="moderation", description="Enable or disable AI moderation & set the rules"
|
||||||
|
|||||||
Reference in New Issue
Block a user