Skip to content

Latest commit

 

History

History
66 lines (45 loc) · 1.27 KB

README.asciidoc

File metadata and controls

66 lines (45 loc) · 1.27 KB

kakoune-zidane

This project implements a small Github plugin for irc3, and a configuration file that sets up an IRC bot to run on Kakoune's channel.

Instructions

Setup

Python 3 is required to run the bot.

$ git clone https://github.com/lenormf/kakoune-zidane.git
$ cd kakoune-zidane

The recommended way to run the bot is by setting up a virtual environment, but this step is optional:

$ python3 -m venv .env
$ source .env/bin/activate

Install the dependencies in the requirements.txt file, either manually or using the pip package manager:

$ pip3 install -r requirements.txt

Configuration

Create a dedicated access token on your Github profile, and grant it the following permissions:

  • public_repo

Once successfully created, declare this token (which should be kept secret) in the bot’s configuration file:

# zidane.cfg

[github_plugin]

token = <token>

Tweak other irc3 settings if necessary.

Running

Use the following command to start the bot:

$ irc3 zidane.cfg

Refer to the documentation of irc3 to learn more about additional flags (e.g. -d for debugging).