Skip to content

A lightweight Discord bot built with Python that automatically reacts to digit-only messages with a customizable emoji. Simple, fun, and fully customizable for your server.

Notifications You must be signed in to change notification settings

aatiqqq/Numreact

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🐄 Discord Custom Emoji Reaction Bot

A lightweight and fun Discord bot built using Python and discord.py that reacts to digit-only messages with a user-defined emoji. Originally created by Muhammad Rahim and Aatiq.

🚀 Features

  • Reacts to messages that contain only digits (e.g., 99, 123) with a custom emoji of your choice.
  • Ignores messages from other bots.
  • Built-in support for Discord command extensions (discord.ext.commands).
  • Easy to customize the reaction emoji — the 🐐 emoji is just the default example.

🛠️ Tech Stack

📁 Project Structure


bot/
│
├── .env                  # Contains the Discord bot token
├── bot.py                # Main bot logic
└── README.md             # You're reading it!

⚙️ Setup Instructions

  1. Clone the repository

    git clone https://github.com/your-username/your-repo.git
    cd your-repo
    
    
  2. Install dependencies

    pip install -r requirements.txt
  3. Set up environment variables Create a .env file in the root directory with the following content:

    DISCORD_TOKEN=your_discord_bot_token_here
  4. Run the bot

    python bot.py

🎨 Customizing the Emoji Reaction

By default, the bot reacts with a 🐐 emoji. To change this, simply update the emoji string in the bot.py file:

# Change this line in on_message event
await message.add_reaction('🐐')  # Replace 🐐 with any emoji you want

For example:

await message.add_reaction('🔥')

Supports both standard and custom server emojis (make sure your bot has access to custom emojis).

✅ Example

User: 22 Bot: reacts with 🐐 (or your selected emoji)

User: hello22 Bot: does nothing

👨‍💻 Authors

Contributing

Feel free to open issues or submit pull requests for improvements or bug fixes.


About

A lightweight Discord bot built with Python that automatically reacts to digit-only messages with a customizable emoji. Simple, fun, and fully customizable for your server.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages