Skip to content

nejucomo/leastbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

leastbot

Scratching an itch.

  1. Install system-wide recent virtualenv as per these instructions.

  2. install C build stuff for dependencies:

    sudo apt-get install build-essential python-dev libffi-dev
  3. Create a specific user:

    sudo adduser --disabled-password leastbot
  4. Become that user:

    sudo su - leastbot
  5. Create and activate a virtualenv for leastbot and its dependencies:

    mkdir ./leastbotvenv
    virtualenv ./leastbotvenv
    source ./leastbotvenv/bin/activate
  6. Install service_identity for some weird reason I don't quite understand but seems related to the python cryptography package:

    pip install service_identity
  7. Install leastbot from pypi (into the activated virtualenv):

    pip install leastbot
  8. Run leastbot to see an error message about how the secret config file is missing:

    leastbot
  9. Cut and paste the output of the last command into the path it specifies, then edit that file to fit your secret credentials (one for github, one for irc).

    (Also, you probably want to make this file readable only by the leastbot user.)

  10. Repeat the "missing config" process for the public config:

    leastbot
  11. Cut, paste, edit, public config.
  12. Finally, run leastbot, which should succeed and connect to irc:

    leastbot

    Warning

    The default commandline is equivalent to leastbot --log-level DEBUG which is very verbose and includes all messages to a channel. Be aware of the confidentiality and space impact. I believe that leastbot --log-level INFO will be relatively concise and privacy-preserving. Caveat emptor.

  13. Verify leastbot has joined the expected irc channel by viewing its log output and also by joining the channel with another irc client and observing the channel roster and/or join notifications.
  14. Go configure github webhook notifications to point to your leastbot web port. Test them by clicking test buttons.

    TODO

    Improve this part of the instructions.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published