Name | rumchat-actor JSON |
Version |
3.0.0
JSON |
| download |
home_page | None |
Summary | Automatically interact with your Rumble livestream chats. |
upload_time | 2024-11-29 18:36:39 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.8 |
license | None |
keywords |
bot
chat
livestream
rumble
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Rumble Chat Actor
Automatically interact with your Rumble livestream chats.
This project is currently just a Python module. It is fully functional, but you have to install the [Python Programming Language](https://python.org) and write your own little script to inport and use it.
This project requires the following python libraries:
- [Cocorum](https://pypi.org/project/cocorum/)
- [Selenium](https://pypi.org/project/selenium/)
- [BrowserMob Proxy](https://pypi.org/project/browsermob-proxy)
- [MoviePy](https://pypi.org/project/moviepy)
- [Requests](https://pypi.org/project/requests)
- [Talkey](https://pypi.org/project/talkey)
RumChat Actor itself is [on PyPi](https://pypi.org/project/rumchat_actor), so once you have Python, installing it with `pip install rumchat-actor` should automatically download all dependencies.
Note that, if you are using Linux, you may have to install python3-pip separately. On Windows, Pip comes with Python.
Additional software requirements that aren't directly Python-related:
- [The Firefox web browser](https://www.mozilla.org/en-US/firefox/new/)
This is basically meant to be a FOSS local implementation of The Rumble Bot, and should run alongside your streaming software and / or other applications on most systems.
Here is an example usage script. Lines starting with # are comments. You would write a script like this, and save it as 'my_rumchat_actor_rig.py` or similar.
```
#First, import the module
import rumchat_actor
#Then, instantiate the Actor object.
#stream_id is either the base 10 or base 36 livestream ID you want the Actor to connect to, obtained from the popout chat or the Rumble Live Stream API.
#If stream_id is None but you pass api_url, the latest livestream shown on the API is chosen automatically.
#If you pass profile_dir to an existing Firefox profile directory, your sign-ins to Rumble chat for the actor will be saved.
#Otherwise, you will have to log in manuaglly each time you use the bot, or pass username and password.
actor = rumchat_actor.RumbleChatActor(stream_id = STREAM_ID)
#Let's set up a message action. A message action is a function called on every chat message.
#It is passed the cocorum.ssechat.SSEChatMessage object, and the RumbleChatActor object.
def eat_some_cheese(message, actor):
'''If a message mentions cheese, eat some cheese'''
if "cheese" in message.text.lower():
actor.send_message(f"@{message.user.username} Eat some cheese 🧀.")
#Actions should return True if they had to delete a message.
#This action does not delete messages, so leaving it at the Python default
# of returning None is fine.
actor.register_message_action(eat_some_cheese)
#There are many ways to register commands. Internally, they all end up
# as some form of rumchat_actor.commands.ChatCommand().
#The simplest way is to instantiate a prebuilt modification of this class.
#Be sure to pass the actor object to the class when you instantiate it.
actor.register_command(rumchat_actor.commands.KillswitchCommand(actor))
#This KillswitchCommand, by the way, shuts down the actor when a mod or admin runs it.
#You can open the Python interpreter and run help("rumchat_actor.commands") to
# see info on other ChatCommand derivative classes.
#The other main way to register a command is via a simple callable.
#Like message actions, these are also passed SSEChatMEssage and RumbleChatActor
def tester(message, actor):
'''Test command callable'''
actor.send_message(f"Test command run by @{message.user.username}")
#You must provide a command name when you do this way.
actor.register_command(name = "tester", command = tester)
#Finally, once everything is registered, we call the actor's mainloop method
# to run it. When this is running, you can press Ctrl+C to exit,
# but it might take a moment to respond.
actor.mainloop()
```
You would write this script, and run it as your local Rumble Chat Actor instance. Note that it currently does not exit on its own when a livestream ends. It may also exit on its own if chat is inactive for a very long time.
Hope this helps!
Be sure to run `help("rumchat_actor")` in the Python interpreter to get more info on the various methods that are available.
I'll try to get some better documentation up soon. Hope this helps!
I, Wilbur Jaywright, and my brand, Marswide BGL, have no official association with Rumble Corp. beyond that of a normal user and/or channel on the Rumble Video platform. This project is not officially endorsed by Rumble Corp. or its subsidiaries.
S.D.G.
Raw data
{
"_id": null,
"home_page": null,
"name": "rumchat-actor",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "bot, chat, livestream, rumble",
"author": null,
"author_email": "Wilbur Jaywright <zargulthewizard@outlook.com>",
"download_url": "https://files.pythonhosted.org/packages/b9/3e/67f1341b9ff94c47613d90437307eae0cbec67376b2867c4a9e32bdee4a4/rumchat_actor-3.0.0.tar.gz",
"platform": null,
"description": "# Rumble Chat Actor\nAutomatically interact with your Rumble livestream chats.\n\nThis project is currently just a Python module. It is fully functional, but you have to install the [Python Programming Language](https://python.org) and write your own little script to inport and use it.\n\nThis project requires the following python libraries:\n- [Cocorum](https://pypi.org/project/cocorum/)\n- [Selenium](https://pypi.org/project/selenium/)\n- [BrowserMob Proxy](https://pypi.org/project/browsermob-proxy)\n- [MoviePy](https://pypi.org/project/moviepy)\n- [Requests](https://pypi.org/project/requests)\n- [Talkey](https://pypi.org/project/talkey)\n\nRumChat Actor itself is [on PyPi](https://pypi.org/project/rumchat_actor), so once you have Python, installing it with `pip install rumchat-actor` should automatically download all dependencies.\nNote that, if you are using Linux, you may have to install python3-pip separately. On Windows, Pip comes with Python.\n\nAdditional software requirements that aren't directly Python-related:\n- [The Firefox web browser](https://www.mozilla.org/en-US/firefox/new/)\n\nThis is basically meant to be a FOSS local implementation of The Rumble Bot, and should run alongside your streaming software and / or other applications on most systems.\n\nHere is an example usage script. Lines starting with # are comments. You would write a script like this, and save it as 'my_rumchat_actor_rig.py` or similar.\n```\n#First, import the module\nimport rumchat_actor\n\n#Then, instantiate the Actor object.\n#stream_id is either the base 10 or base 36 livestream ID you want the Actor to connect to, obtained from the popout chat or the Rumble Live Stream API.\n#If stream_id is None but you pass api_url, the latest livestream shown on the API is chosen automatically.\n#If you pass profile_dir to an existing Firefox profile directory, your sign-ins to Rumble chat for the actor will be saved.\n#Otherwise, you will have to log in manuaglly each time you use the bot, or pass username and password.\nactor = rumchat_actor.RumbleChatActor(stream_id = STREAM_ID)\n\n#Let's set up a message action. A message action is a function called on every chat message.\n#It is passed the cocorum.ssechat.SSEChatMessage object, and the RumbleChatActor object.\n\ndef eat_some_cheese(message, actor):\n '''If a message mentions cheese, eat some cheese'''\n if \"cheese\" in message.text.lower():\n actor.send_message(f\"@{message.user.username} Eat some cheese \ud83e\uddc0.\")\n #Actions should return True if they had to delete a message.\n #This action does not delete messages, so leaving it at the Python default\n # of returning None is fine.\n\nactor.register_message_action(eat_some_cheese)\n\n#There are many ways to register commands. Internally, they all end up\n# as some form of rumchat_actor.commands.ChatCommand().\n#The simplest way is to instantiate a prebuilt modification of this class.\n#Be sure to pass the actor object to the class when you instantiate it.\n\nactor.register_command(rumchat_actor.commands.KillswitchCommand(actor))\n\n#This KillswitchCommand, by the way, shuts down the actor when a mod or admin runs it.\n#You can open the Python interpreter and run help(\"rumchat_actor.commands\") to\n# see info on other ChatCommand derivative classes.\n\n#The other main way to register a command is via a simple callable.\n#Like message actions, these are also passed SSEChatMEssage and RumbleChatActor\ndef tester(message, actor):\n '''Test command callable'''\n actor.send_message(f\"Test command run by @{message.user.username}\")\n\n#You must provide a command name when you do this way.\nactor.register_command(name = \"tester\", command = tester)\n\n#Finally, once everything is registered, we call the actor's mainloop method\n# to run it. When this is running, you can press Ctrl+C to exit,\n# but it might take a moment to respond.\nactor.mainloop()\n```\n\nYou would write this script, and run it as your local Rumble Chat Actor instance. Note that it currently does not exit on its own when a livestream ends. It may also exit on its own if chat is inactive for a very long time.\nHope this helps!\n\nBe sure to run `help(\"rumchat_actor\")` in the Python interpreter to get more info on the various methods that are available.\nI'll try to get some better documentation up soon. Hope this helps!\n\nI, Wilbur Jaywright, and my brand, Marswide BGL, have no official association with Rumble Corp. beyond that of a normal user and/or channel on the Rumble Video platform. This project is not officially endorsed by Rumble Corp. or its subsidiaries.\n\nS.D.G.\n",
"bugtrack_url": null,
"license": null,
"summary": "Automatically interact with your Rumble livestream chats.",
"version": "3.0.0",
"project_urls": {
"Homepage": "https://github.com/thelabcat/rum-chat-actor",
"Issues": "https://github.com/thelabcat/rumble-api-wrapper-py/issues"
},
"split_keywords": [
"bot",
" chat",
" livestream",
" rumble"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "5a7f34b2ad1db1dd4cf3c006ee6f7279f8433f5b54d3a56609fed0d77decb179",
"md5": "f27ac029a06e1662f2786a51edf8e283",
"sha256": "5df7b69ed40abe5ed14b96b8f3eb31ce93e2ec648208eba00a8eaefda9a73023"
},
"downloads": -1,
"filename": "rumchat_actor-3.0.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "f27ac029a06e1662f2786a51edf8e283",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 38095,
"upload_time": "2024-11-29T18:36:23",
"upload_time_iso_8601": "2024-11-29T18:36:23.185218Z",
"url": "https://files.pythonhosted.org/packages/5a/7f/34b2ad1db1dd4cf3c006ee6f7279f8433f5b54d3a56609fed0d77decb179/rumchat_actor-3.0.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "b93e67f1341b9ff94c47613d90437307eae0cbec67376b2867c4a9e32bdee4a4",
"md5": "b4c86fc2d5df9bb534a35e3182e0c2d5",
"sha256": "8b58c1b6f918ebf35e43078b7064d8be44f4c12693c21f1e750f09689ed3a727"
},
"downloads": -1,
"filename": "rumchat_actor-3.0.0.tar.gz",
"has_sig": false,
"md5_digest": "b4c86fc2d5df9bb534a35e3182e0c2d5",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 34988,
"upload_time": "2024-11-29T18:36:39",
"upload_time_iso_8601": "2024-11-29T18:36:39.201527Z",
"url": "https://files.pythonhosted.org/packages/b9/3e/67f1341b9ff94c47613d90437307eae0cbec67376b2867c4a9e32bdee4a4/rumchat_actor-3.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-29 18:36:39",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "thelabcat",
"github_project": "rum-chat-actor",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "rumchat-actor"
}