Skip to main content

Automatically interact with your Rumble livestream chats.

Project description

Rumble Chat Actor

Automatically interact with your Rumble livestream chats.

This project requires the following python libraries:

Additional software requirements:

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.

Example usage:

import rumchat_actor

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 🧀.")

    return True #Actions should return None or False if they had to delete a message

#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 credentials = (username, password).
actor = rumchat_actor.RumbleChatActor(stream_id = STREAM_ID)

#Register an action to be called on every message
actor.register_message_action(eat_some_cheese)

#Register a command via the ChatCommand class
actor.register_command(rumchat_actor.ChatCommand(name = "hi", actor = actor, target = lambda message, actor: actor.send_message(f"Hello, @{message.user.username}!")))

#Register a command via a callable
actor.register_command(name = "tester", command = lambda message, actor: print(f"Test command run by {message.user.username}"))

#Run the bot continuously
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. 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 wrapper is not officially endorsed by Rumble Corp. or its subsidiaries.

S.D.G.

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

rumchat_actor-1.0.0.tar.gz (19.6 kB view details)

Uploaded Source

Built Distribution

rumchat_actor-1.0.0-py3-none-any.whl (20.3 kB view details)

Uploaded Python 3

File details

Details for the file rumchat_actor-1.0.0.tar.gz.

File metadata

  • Download URL: rumchat_actor-1.0.0.tar.gz
  • Upload date:
  • Size: 19.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.19

File hashes

Hashes for rumchat_actor-1.0.0.tar.gz
Algorithm Hash digest
SHA256 de6850e3b0719791494f4356208c4bf3ffdfa76bb600e7dcb3a0c0f4df884270
MD5 64c0a6c02e14f94a7dd81afc25421873
BLAKE2b-256 e2c80f0dfb5c8b3a6ebc226f11c47d882b1a007fd40b51eacd5e71e38e8723b7

See more details on using hashes here.

File details

Details for the file rumchat_actor-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for rumchat_actor-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9d8bb598d14aa5b1b60b037631cc43c590d5c108cf713bd964af9b12e6a83d03
MD5 063bf06bc69f4c33a75d2ce4b786e39d
BLAKE2b-256 90e6f6aca53285c96ced12744a27f8e4c7ce2b64aab87b7db6bdabff43ed470e

See more details on using hashes here.

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