Discord Python

A simple Python Discord bot built using the discord.py

Deploy Discord Python

discord-python

aeither/discord-python

Just deployed

Overview

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.

Key Features

  • Minimal Discord bot application
  • Responds to '!ping' and '!hello' commands
  • Uses discord.py for bot functionality
  • Uses Poetry for dependency management
  • Easy to understand and extend

Setup

pip install poetry

Develop

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

Deploy

To deploy the bot on Railway:

railway up

Remember to set the DISCORD_TOKEN environment variable in your Railway project settings.

DISCORD_TOKEN

Test

Open Discord, Add Discord to the channel and Try with !hello or !ping.

Learn More


Template Content

More templates in this category

View Template

Telegram JavaScript Bot

A template for Telegram bot in JavaScript using grammY


View Template

DiscordJS bot

A basic Discord bot written in JavaScript


View Template

Discord-TS 'Most Likely To Minigame' Bot

A simple "Most Likely To" minigame.