TwitchPyRC


NameTwitchPyRC JSON
Version 1.0.7 PyPI version JSON
download
home_pagehttps://github.com/CPSuperstore/TwitchPyRC
SummaryYet another generic Twitch IRC interface that probably works
upload_time2023-08-22 15:53:01
maintainer
docs_urlNone
authorCPSuperstore
requires_python
licenseMIT
keywords twitch irc bot chat bot socket livestream
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # TwitchPyRC
Yet another generic Twitch IRC interface that probably works

## Installation
```shell
pip install TwitchPyRC
```

You will also need an oauth token which can be obtained from https://twitchapps.com/tmi/. 
Simply replace `[oauth token]` in code samples with your own token.

## Usage
TwitchPyRC can be used in a few different ways. The easiest being as follows:
```python
import TwitchPyRC

bot = TwitchPyRC.CommandBot("[oauth token]", ["channel_1", "channel_2", "channel_3"])


@bot.command(["!test", TwitchPyRC.Variable("value"), TwitchPyRC.Variable("value2", int, default=5)], cooldown=5)
def my_command(value, value2):
    print("Test command used with arguments: ", value, value2)


bot.start()
```

It is that easy! 

More documentation coming soon

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/CPSuperstore/TwitchPyRC",
    "name": "TwitchPyRC",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "Twitch,IRC,Bot,Chat Bot,Socket,livestream",
    "author": "CPSuperstore",
    "author_email": "cpsuperstoreinc@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/85/d9/d347f69edfd006f1607d012b8fb82b299881c0bf653410ab94225e82219c/TwitchPyRC-1.0.7.tar.gz",
    "platform": null,
    "description": "# TwitchPyRC\r\nYet another generic Twitch IRC interface that probably works\r\n\r\n## Installation\r\n```shell\r\npip install TwitchPyRC\r\n```\r\n\r\nYou will also need an oauth token which can be obtained from https://twitchapps.com/tmi/. \r\nSimply replace `[oauth token]` in code samples with your own token.\r\n\r\n## Usage\r\nTwitchPyRC can be used in a few different ways. The easiest being as follows:\r\n```python\r\nimport TwitchPyRC\r\n\r\nbot = TwitchPyRC.CommandBot(\"[oauth token]\", [\"channel_1\", \"channel_2\", \"channel_3\"])\r\n\r\n\r\n@bot.command([\"!test\", TwitchPyRC.Variable(\"value\"), TwitchPyRC.Variable(\"value2\", int, default=5)], cooldown=5)\r\ndef my_command(value, value2):\r\n    print(\"Test command used with arguments: \", value, value2)\r\n\r\n\r\nbot.start()\r\n```\r\n\r\nIt is that easy! \r\n\r\nMore documentation coming soon\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Yet another generic Twitch IRC interface that probably works",
    "version": "1.0.7",
    "project_urls": {
        "Bug Tracker": "https://github.com/CPSuperstore/TwitchPyRC/issues",
        "Homepage": "https://github.com/CPSuperstore/TwitchPyRC"
    },
    "split_keywords": [
        "twitch",
        "irc",
        "bot",
        "chat bot",
        "socket",
        "livestream"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3dc392305b4f8c17c2965dffe7becce413e91a2111fc7b587a7d8cb95dff8e19",
                "md5": "53f71127191e10b20032b13590c8425a",
                "sha256": "3112da3f9587b123d18a05d9ee735e9443fdac8101decdd78e81e3ee35437b47"
            },
            "downloads": -1,
            "filename": "TwitchPyRC-1.0.7-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "53f71127191e10b20032b13590c8425a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 18292,
            "upload_time": "2023-08-22T15:52:59",
            "upload_time_iso_8601": "2023-08-22T15:52:59.900681Z",
            "url": "https://files.pythonhosted.org/packages/3d/c3/92305b4f8c17c2965dffe7becce413e91a2111fc7b587a7d8cb95dff8e19/TwitchPyRC-1.0.7-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "85d9d347f69edfd006f1607d012b8fb82b299881c0bf653410ab94225e82219c",
                "md5": "6e970239bc087a8b5113fad8ec4e2835",
                "sha256": "88e69aa3c0f49875cd47fc72c78ec4a1823747cf1e6536c2eb1148ecf60601a5"
            },
            "downloads": -1,
            "filename": "TwitchPyRC-1.0.7.tar.gz",
            "has_sig": false,
            "md5_digest": "6e970239bc087a8b5113fad8ec4e2835",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 14445,
            "upload_time": "2023-08-22T15:53:01",
            "upload_time_iso_8601": "2023-08-22T15:53:01.787915Z",
            "url": "https://files.pythonhosted.org/packages/85/d9/d347f69edfd006f1607d012b8fb82b299881c0bf653410ab94225e82219c/TwitchPyRC-1.0.7.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-08-22 15:53:01",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "CPSuperstore",
    "github_project": "TwitchPyRC",
    "github_not_found": true,
    "lcname": "twitchpyrc"
}
        
Elapsed time: 1.51808s