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.5.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

BubbleNova-0.0.5-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file BubbleNova-0.0.5.tar.gz.

File metadata

  • Download URL: BubbleNova-0.0.5.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.0

File hashes

Hashes for BubbleNova-0.0.5.tar.gz
Algorithm Hash digest
SHA256 087eedd60aeb3a3dd9897a7aaf43c2a47d9ac5be4c9dffd56cf32ebbab6533e2
MD5 4474748e2dfea4b6466ba729782b14cf
BLAKE2b-256 8c5b93f7a179936065c8d212076ac1b21938280cefb700e13b8effc9aaa1b7b8

See more details on using hashes here.

File details

Details for the file BubbleNova-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: BubbleNova-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.0

File hashes

Hashes for BubbleNova-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 bcb37c2c01db214685afd820bdfcd9f10c36ce57476a2b901d67e0973d244df6
MD5 14743a4b734b0f2def012697412d6b52
BLAKE2b-256 1f348eef295f738ded527f626f233a59ad19d8cb612a5545d40be605a27b0b55

See more details on using hashes here.

Supported by

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