diegodorgam / python-rocketchat-bot

rocket.chat python basic bot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rocket.Chat Python Realtime API SDK

PythonBot Example

This is a Python Connector SDK for the RocketChat Realtime API. It uses a DDP connector to create a websocket with a Rocket.Chat server, giving the ability to hear everything that the server sends to a normal user, without the need to create webhooks or use the REST API.

Connector

The connector..

Dependences

requirements.txt

Methods

[WIP]

Examples

Building your first Python Bot for Rocket.Chat

def hello(bot, message):
    bot.sendMessage(message['rid'], "React from hello command")

rocket = RocketChatBot('username', 'password')
rocket.addPrefixHandler('hello', hello)
rocket.start()

About

rocket.chat python basic bot

License:Apache License 2.0


Languages

Language:Python 100.0%