> For the complete documentation index, see [llms.txt](https://garagetesla.gitbook.io/discord-bot-python/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://garagetesla.gitbook.io/discord-bot-python/overview/example-discord-bot.md).

# Example Discord bot&#x20;

https\://discord.com/developers/applications

## Create first bot

<pre><code>import discord
from discord.ext import commands, tasks
import os

DISCORD_TOKEN = ""

intents = discord.Intents.all()
client = discord.Client(intents=intents)
bot = commands.Bot(command_prefix="!", intents=intents)
<strong>
</strong><strong>@bot.command(name='Привет')
</strong>async def button(ctx):
    await ctx.send('Здарова')

bot.run(DISCORD_TOKEN)

</code></pre>
