Bots · library
discord.py
Discord bots: events and messages, commands with arguments, embeds, buttons — ending with a mini quiz bot. Tasks are checked without Discord by feeding ready messages to the bot. To run it on a server, get a token from the Discord Developer Portal.
6 topics · 16 challengesChallenges solved0 of 16
- 01ContinueУстановкаPython, редактор кода, библиотека discord и мост CodeWithMe0 / 1
- 02События и сообщенияdiscord.Client, Intents и message_content, @client.event, on_ready и on_message, message.author.bot, channel.send, async и await0 / 3
- 03Команды с аргументамипрефикс и разбор команды, аргументы через split и partition, random.Random, понятные ответы на ошибки, таблица команд, commands.Bot и слэш-команды0 / 3
- 04Эмбедыdiscord.Embed с title, description и color, add_field и inline, set_footer, discord.Color, channel.send(embed=…), таблица лидеров0 / 3
- 05Кнопкиdiscord.ui.View, @discord.ui.button, interaction.response.send_message и edit_message, ephemeral, button.disabled, label, interaction.user0 / 3
- 06Бот-викторинасравнение ответов без учёта регистра, пробелов и «ё», состояние игры по каналу, очки только первому, итоговая таблица с общими местами — итоговый бот0 / 3