25 lines
623 B
Python
25 lines
623 B
Python
import discord
|
|
import os
|
|
from discord import app_commands
|
|
from discord.ext import commands
|
|
from cogs.deranged_commands import DerangedCommands
|
|
from dotenv import load_dotenv
|
|
|
|
load_dotenv()
|
|
|
|
client = commands.Bot(intents=discord.Intents.all(), command_prefix=".")
|
|
|
|
|
|
@client.event
|
|
async def on_message(message):
|
|
if message.author.id != 886685857560539176:
|
|
return
|
|
if message.content.startswith('.sync'):
|
|
await client.tree.sync()
|
|
await message.channel.send('Synced commands')
|
|
|
|
@client.event
|
|
async def on_ready():
|
|
await client.add_cog(DerangedCommands(client))
|
|
|
|
client.run(os.getenv("TOKEN")) |