A powerful and simple Discord bot that lets server owners send Rugplay coins to users via /claim. Comes with a modern web dashboard to manage server cookies and bot access.
/claim <username> <coin>— Sends 5–500 coins to a Rugplay user using the registered session cookie./register_cookie <cookie>— Lets the server owner register their Rugplay session cookie.- 🧠 Caches usernames and handles invalid recipients.
- 🌐 Web-based admin dashboard (Flask) to view & manage cookie registrations.
- 🔐 Secure admin login using an environment-based password (ex:
AD_OMNI_L7Q8MX). - 📁 SQLite backend for storing cookies.
| Command | Description |
|---|---|
/claim <username> <coin> |
Send a random amount of coins (5–500) to a Rugplay username. |
/register_cookie <cookie> |
Register a Rugplay session cookie (server owner only). |
git clone https://github.com/discobill/RugBot.git
cd RugBotpython -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activatepip install -r requirements.txtDISCORD_TOKEN="your_discord_bot_token"
ADMIN_TOKEN="AD_OMNI_L7Q8MX" # or you can set this to literally anything idc
BOT_OWNER_ID="your_discord_user_id" # Used for showing this in the dashboard if needed
FLASK_SECRET="your_flask_secret_key"
PORT=8080import secrets
print(secrets.token_hex(32))import random, string
print("AD_OMNI_" + ''.join(random.choices(string.ascii_uppercase + string.digits, k=6)))python main.py- Flask dashboard will run at http://localhost:8080
- Discord bot will connect and be ready
-
Push this repo to GitHub
-
Go to https://railway.app
-
Click "New Project" > "Deploy from GitHub"
-
Select your repo
-
Add your environment variables under the Variables tab
-
Set start command to:
python main.py✅ Done! Dashboard and bot will run 24/7.
-
Create a new Python Repl
-
Upload your files or paste them into main.py
-
Add the environment variables using Replit Secrets
-
Use flask run or python main.py
-
Use UptimeRobot to keep it awake (for free)
Just follow the install instructions and run with:
python main.pyUse tmux or pm2 to keep it running in the background.
-
Visit http://localhost:8080 (or your hosted URL)
-
Log in with your ADMIN_TOKEN
-
View & clear registered guild cookies
Pull requests are welcome! Please follow the existing format and comment your code where necessary.
-
Created by discobill and ChatGPT
-
Powered by Discord.py, Flask, SQLite
MIT License — Free to use, modify, and distribute.