Skip to content

stzyium/SnapshotBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snapshot bot

Source code for generating fake discord message screenshots using pillow and discord.py

Setup

Cloning the source

git clone https://github.com/stzyx/SnapshotBot
cd SnapshotBot

Requirements

  • Python 3.8+
  • Packages:
    python -m pip install -r requirements.txt

Running the Bot

  1. Extract font files:
    unzip font.zip
    IMPORTANT: unzip font.zip before running the bot.
  2. Configure config.py with your bot token
  3. Run the bot:
    python bot.py
    or
    python3 bot.py

Commands

  • v!help - Show help message
  • v!activate - Activate the bot
  • v!deactivate - Deactivate the bot
  • v!snap @user <message> - Generate screenshot from text and user mention
  • v!bg <theme> - Change background theme (midnight/white/dark)

You can change the prefix(v!) in config.py

Config.py

# Bot Configuration
is_a_self_bot = False # Change this to True if you are using a self bot

# Bot Settings
default_background_color = "midnight" # midnight | white | dark
admin_id = 123456789123456789
default_status = "use v!help"
active_status = default_status
inactive_status = f"{default_status} [inactive]"

# Commands
prefix = "v!"
activation_command = prefix + "activate"
deactivation_command = prefix + "deactivate"
background_command = prefix + "bg"
snap_command = prefix + "snap"

# Bot Token
BOT_TOKEN = "YOUR_BOT_TOKEN_HERE"

Usage

image

About

Discord Bot for generating fake discord message screenshots using pillow and discord.py

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages