-
Notifications
You must be signed in to change notification settings - Fork 32
Commands
This page lists all of OakBot's commands and listeners.
Type /help COMMAND
to see this help documentation in chat.
Simulates a magic 8-ball.
Examples:
/8ball Is Java the best?
Displays information about this bot.
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.
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
Displays a random cat picture. :3 Images from thecatapi.com.
Aliases: meow
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".
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
Displays a facepalm gif. Images from tenor.com.
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.
Toggles a filter that makes Oak speak in Groot.
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".
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.
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
Teaches the bot a new command.
Examples:
-
/learn happy :)
- Creates a command called "happy" which outputs ":)" when invoked.
Displays a reaction gif. Images from replygif.net.
Aliases: reaction
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").
Toggles a filter that makes all the letters in the messages Oak posts look like they are upside down.
Displays a "shrug" emoticon.
Terminates the bot (admins only).
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
Displays the description of a StackOverflow tag.
Examples:
-
/tag mvc
- Displays the description of the "mvc" tag.
Makes the bot forget a learned command.
Examples:
-
/unlearn happy
- Deletes the command called "happy".
Aliases: forget
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
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".
Toggles a filter that makes Oak speak in Wadu Hek.
Displays a one-box for a Wikipedia page.
Examples:
-
/wiki James Gosling
- Displays a one-box for the "James Gosling" Wikipedia page.
Sends a reply message when someone mentions the bot's name.
Replies to "good morning" messages. Responds to the following greetings: good morning, morning, morno, morn
Responds to any users who post the "wave" emoticon: o/ or \o. Will only wave once every 5 minutes at most.
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.