npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

rugplay-ai

v1.0.7

Published

Automated bot for RugPlay arcade games and AI-powered coin trading

Readme

🎯 RugPlay Smart Coinflip Bot

Views GitHub stars GitHub forks GitHub issues License Node.js Discord

🚀 Enhanced Smart Coinflip Bot v2.0 - An advanced automated trading bot for RugPlay's coinflip game with intelligent strategies, risk management, and real-time Discord notifications.


📊 Live Stats

GitHub Activity GitHub last commit GitHub repo size GitHub watchers

🎮 Features

🎯 Smart Trading Engine

  • Multiple Betting Strategies: Martingale, Conservative, and Aggressive modes
  • Predictive Analytics: AI-powered side prediction based on historical data
  • Dynamic Bet Sizing: Automatic bet adjustment based on win/loss streaks
  • Risk Management: Stop-loss, take-profit, and emergency stop mechanisms

🛡️ Advanced Safety Features

  • Loss Streak Protection: Automatic stop after consecutive losses
  • Win Streak Targeting: Stop after reaching win streak goals
  • Emergency Balance Protection: Halt trading at critical balance levels
  • Pause on Loss: Manual control after each loss for careful management

📊 Real-Time Analytics

  • Live Statistics: Win rate, profit/loss tracking, streak monitoring
  • Historical Data: Persistent storage of all trading sessions
  • Performance Metrics: Detailed analysis of trading patterns
  • Export Functionality: Save trading history for external analysis

🔗 Discord Integration

  • Real-Time Notifications: Live bet results and statistics
  • Detailed Logging: Comprehensive trade information
  • Session Summaries: Final performance reports
  • Custom Webhooks: Easy Discord server integration

⚙️ User-Friendly Interface

  • Interactive CLI: Beautiful colored terminal interface
  • Configuration Management: Easy setup and modification
  • Menu-Driven Navigation: Intuitive user experience
  • Graceful Shutdown: Safe termination with data preservation

🧨 Mines Automation

  • Smart Mineflow: Automatically start a Mines round, reveal safe tiles, and cash out once configurable thresholds are met.
  • Strategy Controls: Tune the mine count, grid size, reveal limit, and minimum multiplier before cashing out.
  • Transparent Reporting: Every reveal, mine position, and payout lands in history and Discord for auditability.

🚀 Quick Start

Prerequisites

  • Node.js 18+ installed
  • RugPlay account (have ur cookie ready)
  • Discord webhook URL (optional)

Installation

  1. Clone the repository

    git clone https://github.com/itzdaimy/RugPlay-Automation.git
    cd rugplay-bot
  2. Install dependencies

    npm install
  3. Set up environment

    # Edit config.json with your configuration
  4. Run the bot

    node index.js

📋 Configuration

Basic Settings

| Setting | Description | Default | |---------|-------------|---------| | side | Preferred coinflip side (heads/tails) | heads | | initialBet | Starting bet amount | Required | | maxBet | Maximum bet limit | Required | | maxAttempts | Maximum trading attempts (0 = unlimited) | 0 | | bettingStrategy | Trading strategy (martingale/conservative/aggressive) | conservative | | delayBetween | Delay between bets (ms) | 1500 | | mineCount | How many mines per Mines round | 3 | | minesBoardSize | Total tiles on the Mines grid | 25 | | minesAutoCashoutMultiplier | Minimum multiplier to auto cash out in Mines | 1.25 | | minesMaxReveals | Maximum safe tiles to reveal before forcing a cashout | 5 | | minesRevealDelay | Delay between each Mines tile reveal (ms) | 0 |

Safety Settings

| Setting | Description | Default | |---------|-------------|---------| | maxLossStreak | Stop after consecutive losses | Required | | stopOnWinStreak | Stop after win streak (0 = disabled) | 0 | | stopProfit | Stop at profit target (0 = disabled) | 0 | | stopLoss | Stop at loss limit (0 = disabled) | 0 | | emergencyStop | Emergency balance threshold | 0 | | pauseOnLoss | Pause after each loss | false |

Connection Settings

| Setting | Description | |---------|-------------| | cookie | RugPlay authentication cookie | | webhook | Discord webhook URL | | sendDetailedLogs | Enable detailed Discord logging |


🎯 Trading Strategies

🔥 Martingale Strategy

  • Doubles bet after each loss
  • Resets to initial bet after win
  • High risk, high reward approach
  • Best for: Short-term aggressive trading

🛡️ Conservative Strategy

  • Gradual bet increases on win streaks
  • Quick reset after losses
  • Balanced risk management
  • Best for: Long-term stable growth

Aggressive Strategy

  • Increases bets on both wins and losses
  • Maximum profit potential
  • Higher risk tolerance required
  • Best for: Experienced traders

📊 Menu Navigation

` 🎮 Main Menu:

  1. 🎯 Coinflip Mode
  2. 🧨 Mines Mode
  3. 🎰 Slots Mode
  4. ⚙ Configure Settings
  5. 📊 View Statistics / Clear History
  6. ❎ Exit

⚙️ Configuration Menu:

  1. 🧾 Basic Settings
  2. 🛡️ Safety Settings
  3. 🔗 Connection Settings
  4. 📋 View Current Config
  5. 🔁 Reset Configuration
  6. 🔙 Back to Main Menu `

📈 Performance Tracking

Statistics Monitored

  • Win Rate: Percentage of successful trades
  • Profit/Loss: Net financial performance
  • Streak Records: Maximum win/loss streaks
  • Balance Tracking: Real-time balance monitoring
  • Trade History: Complete transaction log

Data Storage

  • Configuration: ./config.json
  • Trading History: ./history.json
  • Maximum 100 recent trades stored
  • Automatic data cleanup and rotation

🎨 Discord Integration

Webhook Setup

  1. Create a Discord webhook in your server
  2. Copy the webhook URL
  3. Configure in bot settings
  4. Enable detailed logging

Message Format

🎯 Smart Investor Running
Result: HEADS — ✅ Win
Bet: 10.00 | Side: HEADS | Balance: 109.80
Win Streak: 3 | Net Profit: +9.80
Strategy: conservative | Win Rate: 75.0%

🛠️ Development

Project Structure

rugplay-bot/
├── src/
│   ├── index.js           # Main application file
│   ├── core/
│   ├── modes/
│   │   ├── CoinflipBot.js
│   │   ├── SlotsBot.js
│   │   └── MinesBot.js     # Mines mode implementation
│   ├── services/
│   └── ui/
├── config.json        # Bot configuration
├── history.json       # Trading history
├── package.json       # Dependencies
└── README.md         # This file

Dependencies

  • axios - HTTP client for API requests
  • discord.js - Discord integration
  • chalk - Terminal colors
  • readline - User input handling

🚨 Risk Disclaimer

⚠️ Important: This bot is for educational purposes only. Gambling involves significant financial risk. Always:

  • Trade responsibly within your means
  • Set appropriate stop-losses
  • Monitor your account regularly
  • Understand the risks involved
  • I (daimy) am NOT responsible for a loss in money, items, accounts or ANYTHING ELSE!!

🤝 Contributing

We welcome contributions! Please follow these steps:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Development Guidelines

  • Follow existing code style
  • Add comments for complex logic
  • Test thoroughly before submitting
  • Update documentation as needed

📝 License

This project is licensed under the MIT License - see the LICENSE file for details.


🙏 Support

If you find this project helpful, please consider:

  • ⭐ Starring the repository
  • 🐛 Reporting bugs
  • 💡 Suggesting new features
  • 🔄 Sharing with others

Contact


🎖️ Acknowledgments

  • RugPlay platform
  • Discord.js community for excellent documentation
  • Node.js ecosystem for robust tooling
  • All contributors and users

Made with ❤️ by [Daimy]

GitHub Profile