Skip to main content

A python package for creating Twitch Bots

Project description


Build status PyPI version

This is the repository for Jarvis, the twitch bot.

Getting Started

The simplest way to get started is to create a new file, with the basic code below:

from jarviscore.client import Client

jarvis = Client(nick="yourbotsname", 
    channels=["a list", "of channels", "to connect to"])

As an alternative, better practice would be to make use of a config file to store your settings and loading them into the bot when you start.
Use the following code for your bot as a starter.

from jarviscore.client import Client
from jarviscore import Settings

setting = Settings()

jarvis = Client(nick=setting.get_setting("nick"), 

Next, create a file called config.json and use the following template to get started

    "name": "yourbotsname",
    "token": "yourbotstoken",
    "channels": [
        "a list", "of channels", "to connect to"

If you prefer, you may use a config.yaml file instead.

Custom Modules

You can create your own custom modules and interactions for your bot using the Jarvis Core. Create a folder called modules in the same location as your bot file like so,

+-- root
|   |--
|   |-- config.json
|   +-- modules
|       |--
|       +--

Then, copy the following boiler plate text to get started. This example implements a simple ping module. Note: All modules need to implement setup() and teardown(), both take channel as a parameter.

from jarviscore import Module, Log
from jarviscore import PrivateMessage, CommandMessage

log = Log("Module:Ping", verbose="log")
class Ping(Module):

    def __init__(self, channel):
        Module.__init__(self, "Ping") = channel

    def on_command(self, data: CommandMessage):
        if "ping" == data.KEYWORD:

def setup(channel):
    log.log(f"[{}]: Loaded Module Ping")

def teardown(channel):
    log.log(f"[{}]: Removed Module Ping")

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for jarviscore, version
Filename, size File type Python version Upload date Hashes
Filename, size jarviscore- (24.3 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size jarviscore- (19.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page