girc-wookie
Quickly adding an IRC web service to a GitHub repository
I made this small project to solve a very minor issue in my development projects. I often found myself forgetting to add the IRC webhook to my projects, or not wanting to take the time to do it. Since pretty much all my projects have the exact same configuration for their IRC webhooks, I figured I may as well write a script to do it for me with essentially the same configuration. Thus, this project was born.
Installation
To install the Wookie, simply execute the following
$ gem install girc-wookieUsage
The Wookie is run with the wookie command.
When called on its own (e.g., $ wookie) it will output some basic usage information.
It takes a single argument, which is the path to the YAML configuration file. It can be named anything.
$ wookie /Users/me/Desktop/wookie.yamlWhen the script has finished, it will state simply Finished. and exit. See below for info about the YAML file.
Configuration
There is a sample YAML file in the source code named example.yaml. It has the following.
-
githubA hash containing information regarding the GitHub user and repository.-
usernameThe username. Optional ifauth_codeis used. -
passwordThe password. Optional ifauth_codeis used. -
repoThe repository to add the webhook to. -
auth_codeThe personal access token. Optional ifusernameandpasswordare used. This will take priority over user/pass authentication.
-
-
ircA hash containing the configuration for the IRC hook.-
serverThe IRC server. -
portThe port. Often this is 6667 -
roomThe IRC room to connect to. Technically, it takes a string with rooms separated by,. -
branchesThe branches to use. Usenullif you care about all of them. -
nickserv_passwordThe nickserv password to authenticate with. Usenullif you don't need to authenticate. -
sslA boolean of whether to use SSL connections or not. -
no_joinWhether to NOT join the channel. Usefalseto join,trueto not join. -
no_colorsWhether to NOT use colors. Usefalseif you like colors, ortrueif you don't. -
noticeWhether to send the message through a notice. -
nickThe nickname to send the messages as.
-