This is the code-base for the Web-team irc bot and nicely called webbot.
It runs with Hubot. For more information on Hubot, go to HUBOT.md
Here is the list of great scripts that webbot provides:
acronyms.js: get acronyms from a spreadsheet and translate themexample.coffee: just a file of code examplegithub-action-notifier.js: an endpoint to notify a IRC channel that a GitHub Action as failedpull-request-notifications.coffee: an endpoint that listens to webhooks from GitHub and publishes a message on IRC on new pull-requestsrelease-notifications.coffee: an endpoint to notify a given channel when a site gets releasedrt-portal.coffee: rt#NUMBER to a clickable linkstatus.coffee: an endpoint that returns OKtoto.coffee: fun scripts
The simplest way to run the site locally is using the dotrun snap:
dotrunRunning the bot in your local terminal will start hubot in console mode (rather than irc), and allow local testing.
In case you want to connect it to IRC from a local machine. You need to get the webbot credentials and run the command:
HUBOT_IRC_PASSWORD=<password> dotrun start-ircThe bot totobot should join the channel #webbot-canonical-web-test.
You can find the deployment config in the deploy folder.