All Templates / Bots
Discord Python
A simple Python Discord bot built using the discord.py
discord-python
aeither/discord-python
Just deployed
This project is a simple Discord bot built using the discord.py library. It demonstrates the basic structure of a Discord bot and uses Poetry for dependency management. The bot responds to commands and can be easily extended with additional functionality.
pip install poetry
To run the bot locally:
poetry run python bot.py
Make sure to set up your .env
file with your Discord bot token:
DISCORD_TOKEN=your_token_here
To deploy the bot on Railway:
railway up
Remember to set the DISCORD_TOKEN
environment variable in your Railway project settings.
Open Discord, Add Discord to the channel and Try with !hello
or !ping
.
Template Content
discord-python
aeither/discord-pythonDISCORD_TOKEN
Details
John Fu Lin's Projects
Created on Jul 29, 2024
275 total projects
230 active projects
0% success on recent deploys
Python, Dockerfile
Bots
More templates in this category
Telegram JavaScript Bot
A template for Telegram bot in JavaScript using grammY
Agampreet Singh's Projects
241