View on GitHub

mmbot.scripts

Script Catalog for mmbot

Download this project as a .zip file Download this project as a tar.gz file

AchievementUnlocked

Creates an anchievement image with user's gravatar pic and achievement text

COMMANDS

mmbot achievement <achievement> [achiever's gravatar email]
mmbot award <achievement> [achiever's gravatar email]

Author: @dkarzon

announce

Allows annoucements to be made to a room by calling a URL.

Author: @petegoo

Ascii

Creates an ascii art representation of input text

COMMANDS

mmbot ascii me <query> - Returns ASCII art of the query text.

Author: @dkarzon

Cats

Brings cats

COMMANDS

mmbot cat me <number> - Returns a number of cat pictures.
mmbot cat me - Returns a cat picture.
mmbot cat gif <number> - Returns a number of cat gifs.
mmbot cat gif - Returns a cat gif.

Author: @dkarzon

DefProgramming

Displays a random quote from def programming

COMMANDS

mmbot def programming - returns a random programming quote

Author: @jamessantiago

dilbert

Gets the latest dilbert comic

COMMANDS

mmbot dilbert     mmbot dilbert latest

Author: @dkarzon

ExchangeRates

Creates an anchievement image with user's gravatar pic and achievement text

COMMANDS

mmbot rate from <currency> to <currency> - Gets current exchange rate between two currencies.

Author: @jamessantiago

futbol

Announces the Football World Cup 2014 scores

COMMANDS

mmbot show all the scores - Show all the football World Cup 2014 scores.
mmbot stream live scores on/off - Switch on/off streaming of live scores into the current room.

Author: @petegoo

Giphy

Pulls an animated gif from the Giphy API

COMMANDS

mmbot gif me <query> - Returns an animated gif matching the requested search term.

CONFIGURATION

MMBOT_GIPHY_APIKEY

Author: @PeteGoo

GithubNotifications

Sets up announcements when github events occur like a push or an issue is created

COMMANDS

mmbot set repo alert (push|issues|pull request) on owner/repo - Sets up an alert to announce in the room when an event happens on github
mmbot remove repo alert (push|issues|pull request|*) on owner/repo - Removes a github alert
mmbot list [all] repo alerts - Lists all the github repo alerts that have been setup. all will list thos for all rooms

CONFIGURATION

MMBOT_ROUTER_PORT
MMBOT_ROUTER_HOSTNAME
MMBOT_ROUTER_ENABLED
MMBOT_GITHUB_USERNAME
MMBOT_GITHUB_PASSWORD

Author: @petegoo

GithubStatus

Checks the status of GitHub.com

COMMANDS

mmbot github status  - Returns the current system status and timestamp.
mmbot github status last - Returns the last human communication, status, and timestamp.
mmbot github status messages - Returns the most recent human communications with status and timestamp.

Author: @petegoo

GoogleImages

Pulls an image from the google images api

COMMANDS

mmbot image me <query> - Returns an image matching the requested search term.

Author: @PeteGoo

Map

Interacts with the Google Maps API.

COMMANDS

mmbot map me <query> - Returns a map view of the area returned by `query`.

Author: @petegoo

octopus

Manages deployments in Octopus Deploy.

COMMANDS

mmbot get octopus environments - List of environments
mmbot get octopus environment Foo - Get details of the 'Foo' environment
mmbot get octopus projects - List of projects
mmbot get octopus project Bar - Get details of the 'Bar' project
mmbot what is deployed - Get details of the deployments in each environment and project
mmbot what is deployed to Prod - Get details of the deployments in the Prod environment
mmbot deploy My Project 1.0.1 to Prod - Deploy the 1.0.1 release of My Project to the production environment

CONFIGURATION

MMBOT_OCTOPUS_URL
MMBOT_OCTOPUS_APIKEY

Author: @petegoo

PlayMe

Talks to TradeMe's PlayMe

COMMANDS

mmbot whats that song? - asks mmbot what the currently playing song is

Author: @petegoo

Powershell

Executes a powershell command

COMMANDS

mmbot ps <command> - Executes a powershell command

Author: @jamessantiago

PowershellModule

Executes a powershell script

COMMANDS

mmbot psm (script) (commands)

CONFIGURATION

MMBOT_POWERSHELL_SCRIPTSPATH

Author: @jamessantiago

Pug

Pugme is the most important thing in your life

COMMANDS

mmbot pug me - Receive a pug
mmbot pug bomb N - get N pugs

Author: @PeteGoo

Rules

Make sure that mmbot knows the rules

COMMANDS

mmbot the rules - Make sure mmbot still knows the rules.

Author: @petegoo

scriptgist

Downloads a script from a gist and adds it to the current environment

COMMANDS

mmbot script gist <gist url>

Author: @dkarzon

SlackDeleteLast

Deletes the last message posted by the bot in the current Slack channel. Useful for those special gifs it finds.

COMMANDS

mmbot undo|abort|delete|remove - Delete the last message posted by the bot in the current Slack channel.

CONFIGURATION

MMBOT_SLACK_USERTOKEN

Author: @petegoo

Spot

Fetches a link to a spotify track

COMMANDS

mmbot spot me <query> - searches for a matching track
mmbot spot me winning - plays the best track evar.

Author: @petegoo

Swearjar

Monitors for swearing

COMMANDS

mmbot swearjar - shows the swear stats of users

Author: @dkarzon

TeamCity

Talks to JetBrains TeamCity CI server

COMMANDS

mmbot show me builds - Show status of currently running builds
mmbot tc list projects - Show all available projects
mmbot tc list buildTypes - Show all available build types
mmbot tc list buildTypes of <project> - Show all available build types for the specified project
mmbot tc list builds <buildType> <number> - Show the status of the last <number> builds.  Number defaults to five.
mmbot tc list builds of <buildType> of <project> <number>- Show the status of the last <number> builds of the specified build type of the specified project. Number can only follow the last variable, so if project is not passed, number must follow buildType directly. <number> Defaults to 5
mmbot tc build start <buildType> - Adds a build to the queue for the specified build type
mmbot tc build start <buildType> of <project> - Adds a build to the queue for the specified build type of the specified project

CONFIGURATION

MMBOT_TEAMCITY_USERNAME -  The teamcity user name of an account with suitable access
MMBOT_TEAMCITY_PASSWORD - The teamcity password
MMBOT_TEAMCITY_HOSTNAME - The host name of the accessible TeamCity server e.g. build.mydomain.com
MMBOT_TEAMCITY_SCHEME - (Optional) http | https - defaults to http

Author: @petegoo

Translate

Allows mmbot to know many languages.

COMMANDS

mmbot hubot translate me <phrase> - Searches for a translation for the <phrase> and then prints that bad boy out.
mmbot translate me from <source> into <target> <phrase> - Translates <phrase< from <source< into <target>. Both <source> and <target> are optional

Author: @petegoo

Urban

Define terms via Urban Dictionary.

COMMANDS

hubot what is <term>?         - Searches Urban Dictionary and returns definition
hubot urban me <term>         - Searches Urban Dictionary and returns definition
hubot urban define me <term>  - Searches Urban Dictionary and returns definition
hubot urban example me <term> - Searches Urban Dictionary and returns example

Author: @petegoo

whenisay

Teach mmbot a canned response to a regular expression

COMMANDS

mmbot when i say <question> you say <response> - teach mmbot to use a response to a command that matches the question regex
mmbot what did I tell you to say - ask mmbot to list the canned responses
mmbot forget what I told you to say <index> - tell mmbot to forget a canned response

Author: @petegoo

WhoIs

Defines a person

COMMANDS

mmbot who am I - returns what you are known as
mmbot who is <user> - returns what a user is known as
mmbot <user> is <definition> - defines a person

Author: @jamessantiago

Wikipedia

Queries wikipedia.org

COMMANDS

mmbot wiki me <query> - responds with Wikipedia's most likely page.

Author: @tharax

Wolfram

Queries wolfram alpha

COMMANDS

mmbot question (question) - Queries wolfram alpha for the answer to the question
mmbot question detailed (question) - Queries wolfram alpha for the answer to the question and provides a verbose answer

CONFIGURATION

MMBOT_WOLFRAM_APPID

Author: @jamessantiago

Xkcd

Grab XKCD comic image urls

COMMANDS

mmbot xkcd [latest]- The latest XKCD comic
mmbot xkcd <num> - XKCD comic <num>     mmbot xkcd random - random XKCD comic

Author: @PeteGoo

Youtube

Messing around with the YouTube API.

COMMANDS

mmbot youtube me <query> - Searches YouTube for the query and returns the video embed link.

Author: @PeteGoo