Raidor R Raidor Регистрация 24 Ноя 2013 Сообщения 104 Репутация 0 Спасибо 0 Монет 0 14 Июл 2023 #1 Как сделать удаление сообщения с вызовом команды в боте Discord Python
ttouktutststk T ttouktutststk Регистрация 25 Дек 2013 Сообщения 104 Репутация 0 Спасибо 0 Монет 0 14 Июл 2023 #2 Руками
мит М мит Регистрация 19 Ноя 2013 Сообщения 86 Репутация 1 Спасибо 0 Монет 0 14 Июл 2023 #3 import discord from discord.ext import commands bot = commands.Bot(command_prefix='!') @bot.event async def on_ready(): print(f'Logged in as {bot.user.name}!') @bot.command() async def ping(ctx): await ctx.message.delete() await ctx.send('Pong!') bot.run('your-token-goes-here')
import discord from discord.ext import commands bot = commands.Bot(command_prefix='!') @bot.event async def on_ready(): print(f'Logged in as {bot.user.name}!') @bot.command() async def ping(ctx): await ctx.message.delete() await ctx.send('Pong!') bot.run('your-token-goes-here')
shum2517 S shum2517 Регистрация 10 Июн 2013 Сообщения 94 Репутация 0 Спасибо 0 Монет 0 14 Июл 2023 #4 Пон