import discord from discord.ext import commands config = { 'token': '', 'prefix': '$', } bot = commands.Bot(command_prefix=config['prefix'], intents=discord.Intents.default()) @bot.event async def on_message(ctx): if ctx.author != bot.user: await ctx.reply(ctx.content) bot.run(config['token'])
import discord from discord.ext import commands config = { 'token': '', 'prefix': '$', } bot = commands.Bot(command_prefix=config['prefix'], intents=discord.Intents.default()) @bot.event async def on_message(message): if message.author != bot.user: await message.channel.send(message.content) bot.run(config['token'])
client = commands . Bot ( command_prefix = config [ 'prefix' ] , intents = discord . Intents ( ) . all ( ) )