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

More templates in this category

New

Telegram JavaScript Bot

Telegram JavaScript Bot

A template for Telegram bot in JavaScript using grammY


0

New

DiscordJS bot

DiscordJS bot

A basic Discord bot written in JavaScript


0

New

Discord-TS 'Most Likely To Minigame' Bot

Discord-TS 'Most Likely To Minigame' Bot

A simple "Most Likely To" minigame.


0