Skip to content
Mike Angstadt edited this page Aug 23, 2018 · 19 revisions

This page lists all of OakBot's commands and listeners.

Type /help COMMAND to see this help documentation in chat.

Commands

/8ball

Simulates a magic 8-ball.

Examples:

  • /8ball Is Java the best?

/about

Displays information about this bot.

/advent

Displays the scores from an Advent of Code private leaderboard. Only works during the month of December.

Examples:

  • /advent - Displays the default leaderboard that is assigned to the current room.
  • /advent 12345 - Displays the leaderboard with ID 12345.

/afk

Allows users to mark themselves as "away from the keyboard". If the user is mentioned in chat, Oak will post a message saying that the user is away. As soon as the user posts a message, Oak will welcome them back and remove their "away" status. "Away" status spans all chat rooms the user has joined.

Examples:

  • /afk - Marks the user as "away".
  • /afk Feeding the dog. - Marks the user as "away" and provides an away message that Oak will post if the user is mentioned in chat.

Aliases: brb

/cat

Displays a random cat picture. :3 Images from thecatapi.com.

Aliases: meow

/define

Displays word definitions from the dictionary. Definitions are retrieved from Merriam-Webster's dictionary API (http://www.dictionaryapi.com/).

Examples:

  • /define steganography - Displays the definition for "steganography".

/ej

Displays items from the book "Effective Java, Third Edition" by Joshua Bloch.

Examples:

  • /ej !list - Lists all items.
  • /ej !random - Displays a random item.
  • /ej 5 - Displays item #5.
  • /ej string - Displays all items that contain the keyword "string".

Aliases: bloch

/facepalm

Displays a facepalm gif. Images from tenor.com.

/fatcat

Displays a random fat cat.

Examples:

  • /fatcat - Shows a random fat cat.
  • /fatcat list - Lists all fat cats.
  • /fatcat add URL - Adds a fat cat.
  • /fatcat delete URL - Deletes a fat cat.

/groot

Toggles a filter that makes Oak speak in Groot.

/help

Displays the list of available commands, as well as detailed information about specific commands.

Examples:

  • /help - Displays the list of available commands
  • /help jaba - Displays the help documentation for a command called "jaba".

/http

Displays information about HTTP status codes and methods. Descriptions come from the official RFC specifications.

Examples:

  • /http 200 - Displays the description for the HTTP 200 status code.
  • /http GET - Displays the description for the HTTP GET method.
  • /http 200 2 - Displays paragraph 2 from the description of HTTP 200.

/javadoc

Displays class documentation from the Javadocs. If more than one class or method matches the query, then a list of choices is displayed. Queries are case-insensitive.

Examples:

  • /javadoc String - Searches for all classes named "String".
  • /javadoc java.lang.String#substring - Searches for all methods in the "java.lang.String" class called "substring".
  • /javadoc java.lang.String#substring(int) - Searches for a method in the "java.lang.String" class called "substring" that has a single "int" parameter.
  • /javadoc java.lang.String#substring(int) JonSkeet - Same as above, but directs the response to a specific user.
  • /javadoc java.lang.String#substring(int) 2 - Displays the second paragraph of the javadoc description.

Aliases: javadocs

/learn

Teaches the bot a new command.

Examples:

  • /learn happy :) - Creates a command called "happy" which outputs ":)" when invoked.

/react

Displays a reaction gif. Images from replygif.net.

Aliases: reaction

/roll

Rolls a variable-sided die or makes a choice.

Examples:

  • /roll - Rolls a six-sided die.
  • /roll 2d20 - Rolls two twenty-sided dice.
  • /roll vi emacs - Randomly chooses one of the specified keywords ("vi" or "emacs").

/rollover

Toggles a filter that makes all the letters in the messages Oak posts look like they are upside down.

/shrug

Displays a "shrug" emoticon.

/shutdown

Terminates the bot (admins only).

/summon

Makes the bot join another room. At least 2 user(s) are needed to summon Oak to a room.

Examples:

  • /summon 139 - Makes Oak join the room with ID 139.

Aliases: join

/tag

Displays the description of a StackOverflow tag.

Examples:

  • /tag mvc - Displays the description of the "mvc" tag.

/unlearn

Makes the bot forget a learned command.

Examples:

  • /unlearn happy - Deletes the command called "happy".

Aliases: forget

/unsummon

Makes the bot leave a room.

Examples:

  • /unsummon - Makes Oak leave the current room.
  • /unsummon 139 - Makes Oak leave the room with ID 139.

Aliases: leave

/urban

Retrieves definitions from urbandictionary.com.

Examples:

  • /urban brah - Displays the top definition for "brah".
  • /urban brah 2 - Displays the second most popular definition for "brah".

/wadu

Toggles a filter that makes Oak speak in Wadu Hek.

/wiki

Displays a one-box for a Wikipedia page.

Examples:

  • /wiki James Gosling - Displays a one-box for the "James Gosling" Wikipedia page.

Listeners

mention

Sends a reply message when someone mentions the bot's name.

morn

Replies to "good morning" messages. Responds to the following greetings: good morning, morning, morno, morn

wave

Responds to any users who post the "wave" emoticon: o/ or \o. Will only wave once every 5 minutes at most.

welcome

Welcomes new users to the chat room. If a welcome message is defined for this room, users with a reputation less than 1000 will receive a welcome message the first time they post a message.

Clone this wiki locally