An chat bot framework
Project description
Kudubot
master | develop |
---|---|
Kudubot is a chat bot framework designed to work with arbitrary messaging services, be it Whatsapp, Telegram, IRC or even Email. The framework is completely modular and can be extended with other connection types and services.
Usage
Kudubot can be used using the kudubot
command once it's installed using
the setup.py file or pip. To do so, run one of the following commands,
optionally with the --user
flag to install it for the current user as
opposed to system-wide:
python setup.py install
pip install kudubot
To use kudubot, a configuration directory must exist in ~/.kudubot
or
be provided to the kudubot
-command using the --config
option.
A configuration directory can be generated using kudubot-config-gen
.
Run kudubot-config-gen --help
to explore the options that tool provides
you.
Sample connection configurations can be found here
Implementing a Connection.
To implement a new Connection, you will have to create a subclass of
the kudubot.connections.Connection.Connection
class and implement the
various abstract methods.
To integrate the connection with Kudubot, make sure your class is in
your system's python path (i.e. importable) and add an import statement
to the config file located at $HOME/.kudubot/connections.conf
that would import your Connection class.
For examples look at the implemented connections.
Implementing a Service
To implement a Service, you will have to create a subclass of the
kudubot.services.Service.Service
class and implement the various
abstract methods.
To integrate the service with Kudubot, make sure your class is in
your system's python path (i.e. importable) and add an import statement
to the config file located at $HOME/.kudubot/services.conf
that would import your Service class.
For examples look at the implemented services.
Creating a standalone Bot Service
To see how to create a single-purpose bot, take a look at the echobot:
Further Information
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file kudubot-0.19.0.tar.gz
.
File metadata
- Download URL: kudubot-0.19.0.tar.gz
- Upload date:
- Size: 39.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73144f49023befd58f96e8ff4428e07b0eafa1e518ad38ed2aa309df73aaf37d |
|
MD5 | 64181c85fb07ed6f60e25c702df79802 |
|
BLAKE2b-256 | 7d2528f3ac27077ae53069b98cab67eedd601491cbf33e2653d555007bcd64bb |
File details
Details for the file kudubot-0.19.0-py3-none-any.whl
.
File metadata
- Download URL: kudubot-0.19.0-py3-none-any.whl
- Upload date:
- Size: 78.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5c7c3589d722c0fb593d8a300f4fe837e091b1b66524f7c0e9311c97a91531a |
|
MD5 | 6a61829b4e9958d1efa520ae0443abcb |
|
BLAKE2b-256 | 0fc5a41050c621f4df74ce4d3701bd2fb93228d9a230e8c3c9b5e2a0e98341e2 |