Skip to content

MPALONDON/discordbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord Bot

A Discord bot built with Python that can moderate servers, play music, run polls, and more. This project demonstrates use of discord.py, SQLAlchemy, and external libraries like yt_dlp.


Features

Moderation

  • Kick and ban members (requires permission)
  • Assign roles

Fun Commands

  • Roll a dice: !roll
  • Polls: !poll "Question" option1 option2 ...

Music

  • Join/leave voice channels: !join, !leave
  • Play music from YouTube: !play <url>
  • Pause, resume, stop: !pause, !resume, !stop

Utility

  • Show list of available commands: !commands
  • Welcome new members automatically

Installation

  1. Clone this repository:
git clone https://github.com/yourusername/discord-bot.git
cd discord-bot
  1. Create a virtual environment
python -m venv .venv
# Linux / Mac
source .venv/bin/activate
# Windows
.venv\Scripts\activate
  1. install dependencies:
pip install -r requirements.txt
  1. Get your bot token:
  • Go to the Discord Developer Portal
  • Create a new application
  • Add a bot to the application
  • Give Privileged Gateway Intents
  • Copy the bot token
  • Paste it in config.json:
{
  "DISCORD_TOKEN": "your-bot-token-here"
}

Make sure you have FFmpeg installed if you want music playback!

About

Basic Discordbot with simple commands, youtube music, moderating etc, SQLITE Database

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages