Jump to content

Portal:Toolforge/Admin/emergency guides/irc bot deployment

From Wikitech
This page contains historical information. It may be outdated or unreliable.

emergency deployment of grrrit-wm and wikibugs on tools-webproxy-01 during nfs outage

1. Find a host that is still running and can access

  • the internet (both)
  • tools-redis (for wikibugs)

2. open up a screen

3. git clone https://github.com/wikimedia/labs-tools-grrrit

4. cd labs-tools-grrrit, apply (we don't need to identify, and ircnotify is also not importatnt)

diff --git a/config.yaml b/config.yaml
index a2a1d6b..4301dd4 100644
--- a/config.yaml
+++ b/config.yaml
@@ -1,6 +1,8 @@
 nick: grrrit-wm
+password: blah
 server: irc.freenode.net
 userName: lolrrit
+ircnotify-pass: none
 realName: GRRRit the Terrible
 default-channel: "#wikimedia-dev"
 firehose-channel: "#mediawiki-feed"

5. you may have to strip channels from the channel list (e.g. ##wmt)

6.

sudo apt-get install nodejs
npm install irc redis ssh2 yaml
cd src
nodejs relay.js

7. in another screen tab, cd ~

8. git clone https://github.com/wikimedia/labs-tools-wikibugs2

9. copy config.json from https://phabricator.wikimedia.org/P872

10. python redis2irc.py

11. in another tab, maybe python wikibugs.py