Skip to main content

A Python library for running multiple Discord bots at once.

Project description

BubbleNova

BubbleNova is a Python framework developed to simplify the concurrent execution of multiple Discord bots (or other scripts). It achieves this by running the bots in separate threads, allowing them to operate independently and concurrently.

How it Works

BubbleNova operates based on a dictionary input that contains the name of your bot (or script) and its directory path relative to the script where you import BubbleNova. It starts each bot in its own thread, ensuring they run in separate, isolated environments.

Usage

To use BubbleNova, follow these steps:

  1. Import the BubbleNova library into your Python script.
import BubbleNova
  1. Create a dictionary that maps your bot names to their respective script directories:
bot_list = {
    "SoapBot": "bots/SoapBot.py",
    "Bubbles": "bots/Bubbles.py"
}
  1. Start the bots using the start_bots function, passing in your bot list as an argument:
BubbleNova.start_bots(bot_list)

When you run your script, BubbleNova will launch each bot in a separate thread, allowing them to operate concurrently.

Example

Here's a sample code snippet demonstrating how to use BubbleNova:

import BubbleNova

bot_list = {
    "SoapBot": "bots/SoapBot.py",
    "Bubbles": "bots/Bubbles.py"
}

BubbleNova.start_bots(bot_list)

print("This code here can still run even though the bots are also still online!")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

BubbleNova-0.0.4.tar.gz (2.6 kB view hashes)

Uploaded Source

Built Distribution

BubbleNova-0.0.4-py3-none-any.whl (2.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page