
20.01.2024, 20:33
|
|
Познающий
Регистрация: 23.01.2022
Сообщений: 77
С нами:
2267665
Репутация:
13
|
|
Мне нужен дс бот который будет отвеччать на сообщение тем же содержанием но почему то ctx.content не работает
Вот код:
Код:
Код:
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'])
|
|
|