BubbleNova


NameBubbleNova JSON
Version 0.0.5 PyPI version JSON
download
home_page
SummaryA Python library for running multiple Discord bots at once.
upload_time2023-10-05 20:38:07
maintainer
docs_urlNone
authorSoapDoesCode
requires_python
license
keywords python discord disord bot bubble nova
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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.

```python
import BubbleNova
```

2. Create a dictionary that maps your bot names to their respective script directories:

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

3. Start the bots using the start_bots function, passing in your bot list as an argument:

```python
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:

```python
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!")
```


            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "BubbleNova",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "python,discord,disord bot,bubble nova",
    "author": "SoapDoesCode",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/8c/5b/93f7a179936065c8d212076ac1b21938280cefb700e13b8effc9aaa1b7b8/BubbleNova-0.0.5.tar.gz",
    "platform": null,
    "description": "# BubbleNova\r\n\r\nBubbleNova 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.\r\n\r\n## How it Works\r\n\r\nBubbleNova 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.\r\n\r\n## Usage\r\n\r\nTo use BubbleNova, follow these steps:\r\n\r\n1. Import the `BubbleNova` library into your Python script.\r\n\r\n```python\r\nimport BubbleNova\r\n```\r\n\r\n2. Create a dictionary that maps your bot names to their respective script directories:\r\n\r\n```python\r\nbot_list = {\r\n    \"SoapBot\": \"bots/SoapBot.py\",\r\n    \"Bubbles\": \"bots/Bubbles.py\"\r\n}\r\n```\r\n\r\n3. Start the bots using the start_bots function, passing in your bot list as an argument:\r\n\r\n```python\r\nBubbleNova.start_bots(bot_list)\r\n```\r\n\r\nWhen you run your script, BubbleNova will launch each bot in a separate thread, allowing them to operate concurrently.\r\n\r\n# Example\r\n\r\nHere's a sample code snippet demonstrating how to use BubbleNova:\r\n\r\n```python\r\nimport BubbleNova\r\n\r\nbot_list = {\r\n    \"SoapBot\": \"bots/SoapBot.py\",\r\n    \"Bubbles\": \"bots/Bubbles.py\"\r\n}\r\n\r\nBubbleNova.start_bots(bot_list)\r\n\r\nprint(\"This code here can still run even though the bots are also still online!\")\r\n```\r\n\r\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "A Python library for running multiple Discord bots at once.",
    "version": "0.0.5",
    "project_urls": null,
    "split_keywords": [
        "python",
        "discord",
        "disord bot",
        "bubble nova"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1f348eef295f738ded527f626f233a59ad19d8cb612a5545d40be605a27b0b55",
                "md5": "14743a4b734b0f2def012697412d6b52",
                "sha256": "bcb37c2c01db214685afd820bdfcd9f10c36ce57476a2b901d67e0973d244df6"
            },
            "downloads": -1,
            "filename": "BubbleNova-0.0.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "14743a4b734b0f2def012697412d6b52",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 2734,
            "upload_time": "2023-10-05T20:38:05",
            "upload_time_iso_8601": "2023-10-05T20:38:05.962107Z",
            "url": "https://files.pythonhosted.org/packages/1f/34/8eef295f738ded527f626f233a59ad19d8cb612a5545d40be605a27b0b55/BubbleNova-0.0.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8c5b93f7a179936065c8d212076ac1b21938280cefb700e13b8effc9aaa1b7b8",
                "md5": "4474748e2dfea4b6466ba729782b14cf",
                "sha256": "087eedd60aeb3a3dd9897a7aaf43c2a47d9ac5be4c9dffd56cf32ebbab6533e2"
            },
            "downloads": -1,
            "filename": "BubbleNova-0.0.5.tar.gz",
            "has_sig": false,
            "md5_digest": "4474748e2dfea4b6466ba729782b14cf",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 2585,
            "upload_time": "2023-10-05T20:38:07",
            "upload_time_iso_8601": "2023-10-05T20:38:07.471926Z",
            "url": "https://files.pythonhosted.org/packages/8c/5b/93f7a179936065c8d212076ac1b21938280cefb700e13b8effc9aaa1b7b8/BubbleNova-0.0.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-10-05 20:38:07",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "bubblenova"
}
        
Elapsed time: 0.20253s