- Статус
- Оффлайн
- Регистрация
- 30 Сен 2019
- Сообщения
- 172
- Реакции
- 58
Python:
import discord
from discord.ext import commands
bot = commands.Bot(command_prefix='!')
@bot.command()
async def test(ctx):
pass
@commands.command()
async def test(ctx):
pass
bot.add_command(test)
@bot.event
async def on_ready():
print(f'Logged in as {bot.user.name}')
@bot.command()
async def ping(ctx: commands.Context):
await ctx.send('Pong!')
bot.run(token='токен')
Сама ошибка
bot = commands.Bot(command_prefix='!') # Провозглашаем переменную для бота с префиксом !
TypeError: BotBase.__init__() missing 1 required keyword-only argument: 'intents'
1 раз вообще что то делаю на питоне поэтому прошу помочь