Skip to content

Block certain words on your Discord server using this bot built on Discord.py. This bot requires minimal setup, and it just works!

License

Notifications You must be signed in to change notification settings

owengaspard/discord.py-blocked-words-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord.py Blocked Words Bot

This is the template for a bot that blocks any specified words in your Discord server.

DigitalOcean Referral Badge

Vultr Referral Badge

Setup the bot

Windows

  1. Download Python from the website
  2. Open Windows Terminal or PowerShell
  3. Clone the repository and cd into it: git clone https://github.com/owengaspard/discord.py-blocked-words-bot.git && cd discord.py-blocked-words-bot
  4. Install pyenv: `pip install pyenv'
  5. Create a virtual environment (venv) and activate it: python3 -m venv bot && bot\Scripts\activate.bat
  6. Install Discord.py: pip install discord.js
  7. Add your token to the botToken file
  8. Run the bot: python3 ./main.py

macOS/Linux

  1. Ether download Python from here or download it using Homebrew: brew install python3 pip
  2. Clone the repository and cd into it: git clone https://github.com/owengaspard/discord.py-blocked-words-bot.git && cd discord.py-blocked-words-bot
  3. Install pyenv: `pip install pyenv'
  4. Create a virtual environment (venv) and activate it: python3 -m venv bot && source bot/bin/activate
  5. Install Discord.py: pip install discord.js
  6. Add your token to the botToken file
  7. Run the bot: python3 main.py

Adding words to the blocklist

The blocklist is in the main.py file. Look for the variable blockedWords, and change the words to whatever you desire.

Basics of Python Arrays

When you add words, put them in quotes ("") and add a comma at the end of it only if you are adding another word under it. Do not add a comma if it is the last word in the list (Python doesn't care, but JSON files do care).

About

Block certain words on your Discord server using this bot built on Discord.py. This bot requires minimal setup, and it just works!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages