Skip to content
This repository was archived by the owner on Sep 9, 2025. It is now read-only.
/ PyLauncher Public archive

A powerful and secure Discord bot that brings a complete Python development environment to your server.

License

Notifications You must be signed in to change notification settings

nythique/PyLauncher

Repository files navigation

Python Logo

PyLauncher

Discord bot for running, analyzing, and learning Python code.
Developed by Nythque.



✨ Overview

PyLauncher is a next-generation Discord bot designed for both beginners and advanced users. It brings a full Python development environment directly to your Discord server, with secure code execution, static analysis, documentation lookup, code explanation, and much more.


🚦 Features

  • 🛡️ Secure Python & Bash Execution: Run code snippets safely and receive instant feedback.
  • 📓 Jupyter Notebook Generation: Create and download Jupyter notebooks from your code.
  • 🧑‍💻 Static Code Analysis: Detect errors and code issues using Pyflakes.
  • 📚 Documentation Lookup: Instantly fetch and translate official Python documentation.
  • 💡 Code Explanation: Get clear, concise explanations of Python code in multiple languages.
  • 🔄 Code Transpilation: Convert code from JavaScript, Java, C, and more to Python.
  • 🎯 Mini-Challenges: Generate Python challenges tailored to your skill level.
  • 📋 Pastebin Integration: Share code easily with Hastebin links.
  • 📊 Server Usage Stats: Monitor your server's usage and premium status.
  • 🛠️ Admin Tools: Manage server access, logs, and bot configuration.

🛠️ Getting Started

Prerequisites

  • Python 3.12+
  • Docker (optional, for containerized deployment)
  • A Discord bot token

Installation

# 1. Clone the repository
git clone https://github.com/nythique/PyLauncher.git
cd PyLauncher

# 2. Install dependencies
pip install -r requirements.txt

# 3. Configure environment variables
cp .env.example .env
# Edit .env and add your Discord and Groq tokens

# 4. Run the bot
python run.py
# Or with Docker
docker-compose up --build -d

💡 Usage

Once the bot is running and invited to your server, use /help to see all available commands.

Examples:

  • /ping — Check bot latency.
  • /notebook <title> <code> — Generate a Jupyter notebook.
  • /analyze <code> — Analyze Python code for errors.
  • /docs <subject> — Get official Python documentation.
  • /transpile <language> <code> — Convert code to Python.
  • /challenge <level> [subject] — Get a Python challenge.
  • /set channel <channel> — Restrict code execution to a specific channel (admin only).

📁 Project Structure

.
├── bot/                # Bot launcher and cog loader
├── commands/           # All bot commands (admin & public)
├── config/             # Settings and controller files
├── gen/                # Code execution service
├── home/               # Core logic and plugins
├── logs/               # Error and security logs
├── run.py              # Main entry point
├── requirements.txt    # Python dependencies
├── Dockerfile          # Docker build file
├── docker-compose.yml  # Docker Compose config
└── .env                # Environment variables

🤝 Contributing

Contributions are welcome! Please open an issue or submit a pull request for improvements or new features.


📜 License

This project is licensed under the GNU AGPL v3 and owned by Nythque.


PyLauncher — Empowering Python learning and automation on Discord.

Today 09/09/2025

About

A powerful and secure Discord bot that brings a complete Python development environment to your server.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •