Skip to content

Dev-Karol1111/Znizka_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Discord Discount Bot

A simple Discord bot that generates random discount codes and percentages when prompted.

Features

  • Generates random 6-character discount codes (uppercase letters + digits)
  • Creates random discount percentages between 20-30%
  • Displays the discount information in an attractive embed format
  • Responds to the .discount command

Requirements

  • Python 3.8 or higher
  • discord.py library
  • A Discord bot token

Installation

  1. Clone this repository or download the bot files
  2. Install the required dependencies:
    pip install discord.py
    
  3. Create a config.py file with your bot token:
    TOKEN = "your-bot-token-here"

Usage

  1. Invite your bot to your Discord server
  2. In any channel the bot has access to, type:
    .discount
    
  3. The bot will respond with a randomly generated discount code and percentage

Configuration

The bot can be easily modified by editing the following values in the code:

  • Change the command trigger by modifying if message.content == '.discount'
  • Adjust discount percentage range in random.randint(20, 30)
  • Modify the discount code length by changing k=6 in the code generation

File Structure

discord_discount_bot/
├── bot.py             # Main bot script
├── config.py          # Configuration file (contains bot token)
├── README.md          # This documentation

License

This project is open source and available under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages