Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord Bot For QRCode

A Discord bot that generates QR codes on demand using a slash command — no need to visit a QR code website.

Features

  • /qrcode slash command, available in any server the bot is added to
  • Encode any text or URL into a QR code image
  • Optional custom color and size for the generated code

Tech stack

Installation

  1. Clone the repo and install dependencies:
    npm install
    
  2. Create a Discord application at the Discord Developer Portal, add a bot to it, and invite it to your server with the bot and applications.commands scopes.
  3. Copy .env.example to .env and fill in:
    • DISCORD_TOKEN — from the Bot tab
    • CLIENT_ID — the application ID from General Information
    • GUILD_ID (optional) — a server ID, for instant command registration during testing instead of waiting on global propagation
  4. Register the slash command:
    npm run deploy-commands
    
  5. Start the bot:
    npm run dev
    

Usage

In any channel the bot can see:

/qrcode text:<text or URL> color:<optional hex color> size:<optional pixel size, 100-1000>

License

MIT

About

Discord bot that generates customizable QR codes directly through slash commands.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages