BattleJesus Guide
Boldly going where no bot has gone before!
Last updated: 04 March 2016.
Operators
Welcome to the operator manual for BattleJesus.
Introduction
BattleJesus is a bot specifically designed to track and calculate WordWars, short periods of time where a writer tries to write as much as possible. Other features, such as tracking word counts, novel quotes, etc, were added in later versions. This manual lists all publically accessible bot commands, their syntax, their usage, and what they do. Please see Troubleshooting if you have technical issues with the bot.
About BattleJesus
Commands have one of three types:
- Public commands can be used in any channel in which BattleJesus is present.
- Private commands must be given via private message, as their name implies.
- Dual commands may be given in channel or via private message.
Commands can also come in various flavours:
- WordWar commands relate to WordWars, which are explained in the
#nanowrimo
Rules & FAQ. - Login commands authenticate you with BattleJesus, or else they require authentication.
- Other commands perform various functions not associated with either of the above.
Most commands will return a result, whether private or public. Commands issued privately need not begin with the command character (!
), and commands may instead begin with the bot's name followed by a colon (BattleJesus: ...
).
Command Interface
Each command is listed with usage rules. A fragment in square brackets ([]
) is optional, and may be omitted. A fragment in angle brackets (<>
) is required, and must be given.
Public
- cq — Selects a quote from the channel database.
Usage:
!cq [#]
!cq <#>
— Returns the numbered quote from the channel database.!cq
— Returns a randomly-selected quote from the channel database.- cqadd — Adds a quote to the channel database.
Usage:
!cqadd <text>
!cqadd <text>
— Addstext
to the channel database as a quote.- cqcount — Show the number of quotes in the channel database.
Usage:
!cqcount
!cqcount
— Shows the number of quotes in the channel database.- faq — Links to the channel FAQ.
Usage:
!faq
!faq
— Sends a private message containing a link to the FAQ.
Private commands
- cqkill — Removes quotes from the channel database.
Usage:
!cqkill <channel> <#>
Required Flag:*
!cqkill <channel> <#>
— Purges the numbered quote from the channel database.- cqseek — Search for quotes in the channel database.
Usage:
!cqseek <s or n>:<term> [channel]
Required Flag:*
!cqseek s:<term> [channel]
— Searches for the termterm
in the database of quotes, returning either quotes from [channel] if defined, or all mutual channels.term
may not contain whitespace. Multiple terms can be ANDed (&
) or ORed (|
), and negated (!
).!cqseek n:<user> [channel]
— Searches for, and returns, all quotes added by the user, either for the given channel or for all channels.- login — Log into the bot.
Usage:
!login <passwword>
!login <passwword>
— Log into the bot. Sessions last 60 minutes or until!logout
is issued, whichever occurs first.- logout — Log out of the bot.
Usage:
!logout
!logout
— Logs you out of any existing session on the bot.- password — Change your password.
Usage:
!password <new password>
!password <new password>
— Changes your password tonew password
if you're logged in.- register — Register an account with the bot.
Usage:
!register <password>
!register <password>
— Registers you with the bot, using passwordpassword
.
Dual-mode commands
- api — Access the NaNoWriMo API.
Usage:
!api <u or r>count <id>
!api ucount <id>
— Display the current word count for the userid
given.!api rcount <id>
— Display the current word count for the regionid
given.- changepass — Change the password for the given user.
Usage:
!changepass <user>
!changepass <user>
— Sets the password for theuser
tochangeme
.- conv — Converts from one unit to another.
Usage:
!conv <num><unit>
!conv <num><f or c>
— Convert the given temperature to Fahrenheit or Celsius.!conv <num><lb or kg>
— Convert the given weight to pounds (lb) or kilograms.!conv <num><mi or km>
— Convert the given speed to miles or kilometers.Note: This command is also spelled
!conf
or!convert
.- count — Word counts.
Usage:
!count [count or <user>]
!count <count>
— While logged in, modify your wordcount bycount
. The valid range forcount
is 0–5000.!count <user>
— If theuser
is registered and has a wordcount, shows the wordcount for thatuser
.!count
— Shows your wordcount.- energy — Show how much energy you have.
Usage:
!energy
!energy
— Shows how much energy you have available.Note: Most commands consume energy. Public usage of dual commands uses more energy than private usage of same. Please consider using BattleJesus in private.
- flags — A flags-based permissions system.
Usage:
!flags [[mask] [flags] or list or help]
!flags <mask> <flags>
— Modifies flags formask
. See!flags help
for a list of flags and their meanings.flags
looks like a standard IRC mode string.!flags <mask>
— Show the flags formask
.!flags list
— PMs a list of users and their flags. Requires thea
flag.!flags help
— PMs a list of flags and their meanings.!flags
— Shows flags for the person who used this command.- help — Displays help for WordWars and status commands.
Usage:
!help
!help
— Displays help for WordWars and status commands.- ident — Identify to services.
Usage:
!ident
!ident
— Identify to services.- ignore — Instruct the bot to ignore a user.
Usage:
!ignore <mask>
!ignore <mask>
— Instruct the bot to ignore a user based on amask
, for which the format isnick!user@host
.Note: Masks may contain wildcards;
?
indicates that a single character can be anything, whereas*
matches zero or more characters that can be anything.- join — Join the bot to a channel.
Usage:
!join <channel>
!join <channel>
— Joins the bot to thechannel
specified.- joinwar — Join a WordWar.
Usage:
!joinwar [eo@][war]
!joinwar [war]
— Joins the specified war, or the current one if none is specified and only one war is queued. Duplicates of the war-related messages will be sent to you via PM.!joinwar eo@[war]
— As above, but sends only the starting and ending messages are sent.- joinwar-last — Join the most recent WordWar.
Usage:
!joinwar-last [eo@]
!joinwar-last
— Joins the most recent WordWar. As with!joinwar
, duplicates of all war-related messages will be sent to you via PM.!joinwar-last eo@
— As above, but only the starting and ending messages are sent.- kill — Destroy a WordWar.
Usage:
!kill <id>
!kill <id>
— Stops the WordWar with the givenid
.- know — Know a user.
Usage:
!know <user>
!know <user>
— Learn theuser
specified.- knowall — Know a user everywhere.
Usage:
!knowall <user>
!knowall <user>
— Learn theuser
specified everywhere.- limit — Set and display flood limits.
Usage:
!limit [limit]
!limit <limit>
— Modify the flood limit.!limit
— Display the current limit.- names — Send a
NAMES
request to the server. Usage:
!names [channel]
!names <channel>
— RequestNAMES
for thechannel
.!names
— RequestNAMES
for the current channel.- newword — Generate a random sequence of letters.
Usage:
!newword <length>
!newword <length>
— Generate a sequence of aboutlength
characters.- nick — Change the bot's nick.
Usage:
!nick <nick>
!nick <nick>
— Change the bot's nick to benick
.- part — Leave the channel.
Usage:
!part <channel>
!part <channel>
— Leave thechannel
channel.- partwar — Leave the WordWar.
Usage:
!partwar [war]
!partwar [war]
— Leave the WordWar.- pick — Choose an item from a list.
Usage:
!pick <item1, item2>[, items...]
!pick <item1, item2>[, items...]
— Choose an item from a list.- ping — Verify that you (and the bot) are online.
Usage:
!ping
!ping
— Verify that you and the bot are online.- prompt — Pick a prompt from the prompt database.
Usage:
!prompt [add <text> or kill <num> or count or num]
!prompt add <text>
— Add <text> to the prompt database. Requires thep
flag.!prompt kill <num>
— Remove the prompt identified bynum
from the prompt database. Requires thep
flag.!prompt count
— Show the number of prompts in the database.!prompt <num>
— Show the prompt identified bynum
.!prompt
— Show a random prompt.- rand — Generate a random number.
Usage:
!rand <min> <max>
!rand <min> <max>
— Generate a number in the rangemin
tomax
, inclusive.- rchan — Send a
NAMES
request for all channels. Usage:
!rchan
!rchan
— Send aNAMES
request for all channels.- rehash — Reload all modules.
Usage:
!rehash
!rehash
— Reload all modules.- reload — Reload a list of modules.
Usage:
!reload <module>[, modules...]
!reload <module>[, modules]
— Reload the specified modules.- roll — Roll dice for one of a variety of systems.
Usage:
!roll <XdYY or XdF or XdP or XdW or 1dWC>
!roll XdYY
— RollX
YY
-sided dice.!roll XdF
— RollX
Fudge dice. (Fudge dice are six-sided dice with two+
faces, two-
faces, and two!roll XdP
— RollX
Pool dice.!roll XdW
— RollX
World of Darkness dice.!roll 1dWC
— Roll a World of Darkness 'chance' die.- servstat — Show bot information.
Usage:
!servstat
!servstat
— Show bot status information.- setcount — Set the word count for a user.
Usage:
!setcount <user> <count>
!setcount <user> <count>
— Changeuser
's count tocount
.- showlist — Show the blacklist's entries.
Usage:
!showlist
!showlist
— Show the contents of the blacklist.- sqlreconn — Reconnect to the SQLite database.
Usage:
!sqlreconn
!sqlreconn
— Reconnect to the SQLite database.- startwar — Start a WordWar.
Usage:
!startwar <delay> <length>
!startwar <delay> <length>
— Start alength
-minute-long (maximum 60 minutes) WordWar afterdelay
minutes (maximum 15).- status — Show current WordWar status in PM.
Usage:
!status
!status
Send a private message containing current WordWars.- stopall — Stop all WordWars.
Usage:
!stopall
!stopall
— Stop all WordWars.- switchwar — Toggle WordWar usability.
Usage:
!switchwar [on or off]
!switchwar on
— Turn WordWars on.!switchwar off
— Turn WordWars off.!switchwar
— Show current WordWar status.- time — Show the time in the Bot Standard Time (US/Central).
Usage:
!time
!time
— Show the bot's current time/date information.- twist — Select a plot twist from the database.
Usage:
!twist [add <text> or kill <num> or count or num]
!twist add <text>
— Add a twist to the database. Requires thet
flag.!twist kill <num>
— Remove the twist identified bynum
from the database. Requires thet
flag.!twist count
— Show the number of twists in the database.!twist <num>
— Show the twist identified bynum
.!twist
— Show a random twist.- unignore — Empty the ignorelist.
Usage:
!unignore
!unignore
— Empty the ignore list.- unknow — Forget the user.
Usage:
!unknow <user>
!unknow <user>
— Forgetuser
.
Operator channel exclusives
- last — Provide information about a user.
Usage:
!last <user> [-index]
!last <user>
— Provides the most recently-stored information aboutuser
.!last <user> -<index>
— Provide information stored aboutuser
,index
records prior to the most recent record.- log — Log some information about a user.
Usage:
!log <user> <text>
!log <user> <text>
— Storestext
aboutuser
.
Troubleshooting
If you're having problems with BattleJesus, please contact Aerdan or Rowan for assistance.