So, here's my IRC bot that has a bunch of random utilities
It'll be around 24/7 once I get my withg account all set up
(Thanks, alberthro!
)
The bot is coded in Java using PircbotX.
Source codeAlso, when I say pastebin, I'm referring to pastehtml.com.
Here are the commands that it has so far:
%define [word]Retrieves the definition of a word.
Example:
<epic7> %define enigma
<epic7> [EpicBot] mystery , enigma , secret , closed book (noun) - something that baffles understanding and cannot be explained; "how it got out is a mystery"; "it remains one of nature's secrets"
<epic7> [EpicBot] For full definition, go to http://goo.gl/JvAje
<epic7> %define Sorunome
<epic7> [EpicBot] Sorunome (noun) - Derpy Hooves
<epic7> [EpicBot] For full definition, go to THE GAME%shorten [URL]Shortens a URL
Example:
<epic7> %shorten http://omnimaga.org
<epic7> [EpicBot] Shortened URL: http://goo.gl/q6Cjv%paste [message]Sends a message to a pastebin; html code is accepted
Example:
<epic7> %paste <h1>I AM HUNGRY</h1>
<epic7> [EpicBot] Pasted message: http://goo.gl/3rgBJ%logPastes a log of the past 64 posts on your channel.
Html tags are apparently accepted in the log; that's a bug
Example:
<epic7> %log
<epic7> [EpicBot] Log for #omnimaga-spam: http://goo.gl/44jTJ %dice [amount]Rolls a given amount of dice, up to 2048. Even though nobody would ever need to roll 2048 dice at once
Example:
<epic7> %dice 2048
<epic7> [EpicBot] http://goo.gl/Z5CRK%translate [from] [to] [message]Translates text and sends it to pastebin. Sends to pastebin by default because I can't get the special characters to work correctly in omnom.
Uses bing translator api. Probably won't be very reliable, but whatever
For from and two, accepted values are
e- English
f- French
d or g- German
s- Spanish
Example:
<epic7> %translate e d Where's my dinner?
<epic7> [EpicBot] http://goo.gl/pUeGS%stranslate [from] [to] [message]Does the same as above, but posts to IRC instead of giving a pastebin link.
Example:
<epic7> %stranslate s e quise comer un reloj porque ellos son deliciosos
<epic7> [EpicBot] I wanted to eat a clock because they are delicious%translol [message]Does nothing useful, but can be kinda funny.
Translates from English to French, French to German, German to Spanish, and Spanish back to English
Example:
<epic7> %translol Felicitations, malefactors! I am endeavoring to misappropriate the formulary for the preparation of affordable comestibles! WHO WILL JOIN ME?!
<epic7> [EpicBot] Congratulations of the jury, the criminals! I'm trying to capture the list of medicinal products for the preparation of affordable edible! WHO WILL JOIN ME?Other commands%time
%test
%whoami