Skip to content
j. redhead edited this page May 9, 2026 · 10 revisions

All BotBot code should follow this format.


BotBot code must be preceded by a short header consisting of the following:
!createbot &roomname @BotName
This will create a bot with the name BotName (capped to 36 characters and cannot include spaces) in the room &roomname that is subject to the bot specifications. &roomname may be omitted to create a bot in the room in which BotBot is located.


BotBot code is made up of statements separated by semicolons ;.
Statements are composed of a regular expression (also known as a regex), followed by an arrow ->, followed by a response.

BotBot is tolerant with whitespace. You may include any amount of whitespace before and after arrows and after semicolons, and BotBot will ignore it.

Examples

^hi$ -> Hello, there.

For any message matching exactly "hi", respond with "Hello, there."


^hi$ -> Hi, there.;
^hello$ -> Hello, there.

Respond to any message matching exactly "hi" with "Hi, there." and to any message matching exactly "hello" with "Hello, there."

(It is not suggested to actually make bots like this as they are generally considered quite spammy)

Clone this wiki locally