Discord Python

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

Deploy Now

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

View Template
waha

waha

WhatsApp API that you can run in a click


andresfiloso

View Template
Telegram JavaScript Bot

Telegram JavaScript Bot

A template for Telegram bot in JavaScript using grammY


Agampreet Singh's Projects

View Template
DiscordJS bot

DiscordJS bot

A basic Discord bot written in JavaScript


opqr's Projects