Uberbot
From Moiph.com wiki
UB2R-B0T is based off of Hotnsour, an IRC bot framework, which can be found at Red Elm Studios. This page lists all (most) of the available commands on UB2R-B0T, as well as a brief history and FAQ.
Contents |
History
The first version of UB3R-B0T was just a bunch of hacked together scripts running inside an mIRC client. It got the job done, but it wasn't very pretty. Junior year of college I met a guy (Jerry! Jerry!) who had written an IRC bot in PHP4. As a project in one of our classes, we rewrote that code in PHP5, which is the Hotnsour framework (linked to above). UB2R-B0T uses this framework, though a fairly hacked up copy. While PHP may seem like an odd language for an IRC bot, it actually works decently well. The big plus is being able to write scripts in PHP -- it's quick and easy, and more powerful than mIRC scripting :) Supposedly there are plans to rewrite Hotnsour sometime in the future...we'll see what happens ;)
FAQ
How do I register?
Private message the following the bot, replacing {password} with a password of your choosing:
/msg UB2R-B0T .register {password}
Please note that whatever nick you are using at the time of registration is the nick you must be using when updating.
Why register?
The point of registering with the bot is so that you can be assigned a particular level within the bot's database. Levels are set on a per-channel basis. The point of having levels is to restrict certain commands from public use -- for example, the ".op" command, which gives operator status, should only be accessed by certain users. To have a level set, you'll need to ask me.
I was level X, but now I'm back to level 1. What gives?
The bot uses hostmasks to determine your level. So, once you've been assigned a level, if your current hostmask does not match the record in the database, you won't have your assigned level. This is where registration comes into play. Since you registered with a password, you can update your hostmask in the bot's database in order you regain your previous level statuses, like so:
/msg UB2R-B0T .update {password}
Commands
To use a command, use the keyword prefixed with one of the command characters: ".", "~", or "!".
- 8ball
Ask a yes/no question, receive a stupid answer.
<Moiph> ~8ball Am I a ninja? <UB2R-B0T> BAHAHAHAHHA IN YOUR DREAMS <Moiph> :( <Chris-Chan> ~8ball Do I listen to kickass music? <UB2R-B0T> Holy CRAP yes
- acr
Gets possible definitions of an acronym
<Resurge> .acr l&o <UB2R-B0T> Results: Law & Order (TV show), Loud and Offensive
- chuck_norris
Find out 100% true, real facts about Chuck Norris. None of them are fake.
<luckz> ~chuck_norris
<UB2R-B0T> Chuck Norris doesn't need to read command tutorials. HE
ALREADY KNOWS ALL OF THEM.
- cnn -- This is currently busted
Pulls the latest three headlines from CNN
<Archdeco> ~cnn
<UB2R-B0T> Hurricane-force winds hit Jamaica
[http://rss.cnn.com/~r/rss/cnn_topstories/~3/145743160/index.html]
<UB2R-B0T> Rescue leader: Miners likely may not be found
[http://rss.cnn.com/~r/rss/cnn_topstories/~3/145798529/index.html]
<UB2R-B0T> Hurricane forces shuttle to leave early
[http://rss.cnn.com/~r/rss/cnn_topstories/~3/145853220/index.html]
- define
Defines the given term
<Baldev> .define awesome <UB2R-B0T> amazing: inspiring awe or admiration or wonder; "New York is an amazing city"; "the Grand Canyon is an awe-inspiring sight"; "the awesome ...
- digg
Get the latest three stories from Digg
<PhantomOTO> ~digg
<UB2R-B0T> Why we love Linus [ 55 diggs ] [ 9 comments ]
http://www.itbusiness.ca/it/client/en/TechGovernment/News.asp?id=44682&PageMem=2
<UB2R-B0T> 7 Reasons to stop predicting a 'Digg Killer' [ 142 diggs ] [ 37 comments ]
http://muhammadsaleem.com/2007/08/19/7-reasons-to-stop-predicting-a-digg-killer/
<UB2R-B0T> Nintendo Power gives Metroid Prime 3 a 10/10 [ 226 diggs ] [ 81 comments ]
http://gonintendo.com/?p=23199
- fc
Get the Wii friend code of a user or add a user to the database.
<CosmoKramer420> .fc CoolBreeze2513 gh <UB2R-B0T> CoolBreeze2513's friend code for gh: 1719 2149 8267 <RedFinger> .fc add RedFinger gh 274999257019 <UB2R-B0T> Redfinger's friend code for gh has been added! <Tasakea> .fc UB2R-B0T brawl <UB2R-B0T> I'm a bot. Freakin' moran.
- fm
Get the most recent song a user has listened to (using their Last.FM account)
<Aegrus> ~fm Nightgaunt <UB2R-B0T> >> Tay Zonday - Chocolate Rain <rexxz> ...hahahah <Nightgaunt> WHAT'S SO FUNNY? I LOVE THAT SONG!
- g
Get the top result from a Google search.
<PyroMyrmidon> ~g HOW TO KILL UB3R-B0T <UB3R_B0T2> No results found.
- gh
Get the most recent song played on Guitar Hero 3 for a user at guitarhero.com. You must provide the user account number to get results (hopefully this will change someday). NOTE: The XML feed that the bot parses is only updated every 6 hours.
<IcySkree> .gh 271038 <UB2R-B0T> IcySkree's Last Song Performed: story_of_my_life | Difficulty: expert | Stars: 5 [99%] | Score: 421310 | Streak: 599
- gstock
Get stock information from Google Finance.
<Moiph> ~gstock Seagate <UB2R-B0T> Seagate Technology (Public, NYSE:STX) <UB2R-B0T> Price: 23.75 +1.08 <UB2R-B0T> Open: 23.50 High: 23.88 <UB2R-B0T> Vol: Low: 22.58
- help
Get the URL to this page.
<Tinister> ~help <UB2R-B0T> Commands List: http://wiki.moiph.com/uberbot/
- me
Check your current level on the channel.
<Moiph> ~me <UB2R-B0T> You are level 1. <Moiph> DAMN IT. <Nair> ~me <UB2R-B0T> You are level NINE THOUSAND. <Nair> VICTORY IS MINE!!
- metal
Search Metal Archives for band information.
<Z500> ~metal Sepultura
<UB2R-B0T> Encyclopaedia Metallum - Sepultura: http://www.metal-archives.com/band.php?id=78
<UB2R-B0T> Genre: [Death/Thrash Metal (early), Groove/Hardcore (later)] Country: [Brazil (Belo Horizonte,
MG)] Year: [1984] Label: [SPV/Steamhammer] Status: [Active]
<Shutdown> ~metal spice girls
<UB3R-B0T> No results found. *snicker*
- peak
Returns the highest number of users seen in the channel, along with the date when that occurred.
<{sadida}> .peak
<UB2R-B0T> Record number of users for #zelda was 55, set on Mar 31, 2008 at 3:43PM PST
- register
This command must be sent through a private message to the bot.
<Moiph> ~register IWEARPRETTYDRESSES <UB2R-B0T> You have registered!
- seen
Reports the last time the given user said something in the channel.
<Moiph> .s Terak <UB2R-B0T> Terak was last seen March 28, 2008, 10:00 pm saying "g'night all you rockers! :)"
- slashdot
Returns the latest three headlines from Slashdot.
<Alie> .slashdot <UB2R-B0T> Quake-Catcher Aims to be Largest Distributed Seismometer Network: http://science.slashdot.org/article.pl?sid=08/03/28/233215&from=rss [33] comments <UB2R-B0T> VeriSign Jacks Up .com, .net Prices To the Max: http://tech.slashdot.org/article.pl?sid=08/03/28/2249213&from=rss [112] comments <UB2R-B0T> Materials Science Toys on Display: http://science.slashdot.org/article.pl?sid=08/03/28/2131220&from=rss [20] comments
- spell
Returns spelling suggestions from Webster. Shortcuts: 'sp'
<Scott> .sp incompentant <UB2R-B0T> Suggestions: incompetent, incompetents, incompetently, omnicompetent, incompleteness
- stats
Runs mIRCStats to generate statistics from the logs.
<Stephiroth> .stats <UB2R-B0T> Updating the stats...please wait... <UB2R-B0T> Stats are updating...They will soon be updated at: http://ubergaming.net/irc/stats/zelda.html <Cody> :O
- steam
Returns basic stats from steamcommunity.com for the given user. Note: The username given must be set as a custom URL.
<f0rked> .steam f0rked <UB2R-B0T> Time Played: 2.4 hrs past 2 weeks | Most Played: Team Fortress 2 @ 1.2 hrs
- summon
Summons a beast of some sort to perform {action}.
<Speedy> ~summon flog moiph mercilessly
<UB2R-B0T> Speedy summons Oeric, the demon of the Forsaken Wasteland to
flog moiph mercilessly.
- tf2
Returns stats for Team Fortess from steamcommunity.com. As with the steam command, the username given must be set as a custom URL.
<moiph> .tf2 moiph <UB2R-B0T> Total Points: 6,707 | Most Points: 34 (as Sniper) | Most Kills: 21 (as Sniper)
- time
Gets the time for the specified city
<dunkin> .time chicago <UB2R-B0T> 6:37pm Sunday (CST) - Time in Chicago, Illinois
- title
Retrieves the title of the last URL seen in the channel (looks for http://). Shortcuts: 't'
<windeh> http://www.coopext.colostate.edu/4DMG/Pests/flyant.htm <MirrorImage> ~title <UB2R-B0T> On Flying Ants <eric-sad> I don't like ants :(
- translate
Translates a word or phrase to languages supported by Google Translator
<C> .translate en|es we do not need a dispenser here <UB2R-B0T> no necesitamos un dispensador aquĆ
- ud
Gets a definition of a word/phrase from Urban Dictionary
<Erika> .ud Erika <UB2R-B0T> Female name, German and Scandinavian origin, an alternative spelling of Erica. Meaning: Ever queen/ever powerful
- update
If you've already registered with the bot, and your hostmask has changed since then, you'll need to update it to restore your levels. NOTE: You must use this command under the same nick you used when you registered.
<Naz> ~update ILIKEMETAL
<UB2R-B0T> You haven't registered yet (or you gave the wrong password).
Please use ~register.
<Naz> woops
<Naz> ~update ILIKEHANSON
<UB2R-B0T> You have updated your hostmask!
- version
Reports the current version of the bot
<ZUChat> ~version <UB2R-B0T> hotnsour v1.0 | UB3R-B0T v2.0
- w
Check the local weather! Hint: Just type a 5 digit zipcode without the command as a shortcut! (Weather data provided by http://wunderground.com
<Moiph> ~w 61820 <UB2R-B0T> Champaign, IL - 82F (feels like 87F) - 1:00 PM CDT <UB2R-B0T> Cloudy - 70% Humidity - Winds 5mph SSW. <capncornflake> ~w my ass <UB2R-B0T> Sorry, I can't seem to find my ass.
- wf
Get the weather forecast. -- CURRENTLY BORKED
<hatt> ~wf London <UB2R-B0T> London, Canada - 23F/-5C (feels like 23F/-5C) - 1:00 AM Local Time <UB2R-B0T> Clear - 83% Humidity - Winds 2mph W. <UB2R-B0T> Friday: 20-? F (Clear) <UB2R-B0T> Saturday: 25-37F (Mostly Clear) <UB2R-B0T> Sunday: 36-43F (Rain)
- youtube
Searches youtube and returns the first result.
<Slash> ~youtube bunnies <UB2R-B0T> Soft, cuddly bunny: http://youtube.com/watch?v=pn9oufznHrQ <Slash> omg awwwww <3
Bonus Stuff
faces
The bot has "faces" for a lot of different things. For example:
<Dom> sad face <UB2R-B0T> :( <moiph> grr face <UB2R-B0T> >:O
After adding in the obvious, I added in some extra ones:
<Jason> emo face <UB2R-B0T> omg life sux wheres my linkin park cd :'(((
At some point I added in faces using people's nicks -- usually as a description of the person or a quote or something of the sort (or just an inside joke)
<yami> yami face <UB2R-B0T> SEASONS CHANGE AND SO CAN I
Not everyone has a "face" in the bot's database yet...if you're a regular in the channel you might, but I'm a bit behind on keeping it up to date. Don't bug me about it either, I'll get to it :)
