User:Nitrolicious/StabTot

'''The information in this article may be out dated and invalid. StabTot is no longer active.'''

StabTot (a corruption of StatBot; Statistics Bot) is a PHP interpreted IRC Bot for the XettexNet channel #xettexnet.

Currently, StabTot is complete but still open to new ideas. It is run on Nitrogen's computer because he has nice uptime (^_^)

Whenever Nitrogen isn't on the network, it'll be most likely StabTot isn't either, possibly due to a problem or occurrence (power meter? ISP? Router problems?) shouldn't happen to much though.

Remember: any information given to or viewed by StabTot is possibly viewable by any other IRC operator at any time... if you have any problems with StabTot; don't hesitate to let an operator know..

StabTot also records channel activity, the information can be seen on:

Commands
StabTots commands are (or should be) easy to understand. They're all user-friendly. Some of the commands are channel specific (#xettexnet).


 * !dns 
 * performs a Whois on an IP address or domain name.
 * outputs the registrants name, email, date of the domains creation/update/expirey info.
 * !acronym  
 * uses a small database for finding the definition of an acronym. (beta)
 * !online  
 * provides a simplified /whois result. (beta)
 * !encode    
 * !decode    
 * these 2 functions allow you to encode/decode the   in  
 * functions supported are: base64, uucode and hex (more will be added, later).
 * !country []
 * determines which country the input is from.
 * accepts either a nickname currently connected to the server or an IP address (0.0.0.0 - 255.255.255.255).
 * uses 78,700 IP ranges to deter the countries.
 * !ping
 * performs a CTCP operation on your client.
 * returns length of time between sending and reciving the ping response (pong).
 * !convert     to  
 * converts   to   from  .
 * example: !convert 45 GBP to USD
 * example would output something similar to "[Currency] 45 British Pounds equals 93.16440 US Dollars".
 * !fight   against  
 * performs a Google search for both keywords.
 * checks to see which keyword has the highest page results (via Google.com).
 * !youtube  
 * performs a YouTube search (for videos).
 * shows the top 3 results.
 * !google  
 * performs a Google search (for websites).
 * shows the top 3 results.
 * !seen  
 * will show you whenever   was last seen in the channel.
 * !slap  
 * slaps   in different ways.
 * !myip
 * allows a user to quickly find out their IP address.
 * this information is NOTICE'd to you so noone else can see.
 * !define  
 * does a quick Google define of a word or phrase.
 * !rules
 * shows you the network rules. (under construction)
 * !helpme  
 * lets you scan for help with the network, commands or other robots commands. (under construction)
 * !hash   [  ...]
 * lets a user quickly encrypt a sentence or word in any available algorithm listed in !hash algos.
 * !hash MD5 This is a test will produce an MD5 hash of "This is a test" (will result to ce114e4501d2f4e2dcea3e17b546f339).
 * !hash help will give an insight of other available subcommands associated with !hash.
 * !spell '' 
 * a rough command for finding a spelling mistake of a word (not a sentence) using the dictionary method.
 * dictionary is yet incomplete, 5,500 or so words only. (not going to download a list, too messy)

Robot Operator Commands
These are commands used only by the bot operators (Nitrogen only at this time).


 * !fact  
 * this will allow the robot operator to delete, rollback, lock or unlock a fact name.
 * each command supports the wildcard character (*).
 * the rollback command reverts a fact to its previous definition.
 * the lock and unlock controls wheather or not a user is allowed to change a fact(s).
 * !stabtot   [  ...]
 * !stabtot is used for controlling StabTot around on XettexNet, such as joining/parting channels, quitting/reconnecting and logging in as one of the robot operator.
 * !stabtot stats shows some of the robot information, this can be viewed by anyone (not only its operators).
 * the raw sub-command is used for sending raw data to the IRC network
 * !settings  
 * controls a few settings for the robot such as flood control, silencing, changing StabTots' operators password (their own password only), etc.

Factoids
There's also an 'infobot'-like feature that allows StabTot to save facts (aka: factoids).

Syntax: StabTot,   is  

Instead of using is, you could also use either are, means, shall, was, were, will or would.

  has a minimum amount of 3 alpha-numeric characters only to avoid some annoyance during conversations.

 StabTot, ROFL means Rat on Fire in Lake

This can be viewed by simply questioning the fact name...

 rofl?

 DancingLeper once told me ROFL means Rat on Fire in Lake

You may now also use   inbetween the   and  , whenever someone queries the  ; it'll say exactly what you entered for  .

You can also use &1 in  , it will be replace which the nickname of the person who is questioning the fact... &2 can be used additionally for the nickname of whoever created the fact (redundant, but people can be lazy).

For this to work, you need to have the   mentioned inside   (just to stop people entering non-related jargon into it).

 StabTot, Grenades &1, explosive material such as grenades kills people! (hello from &2!)

 Grenades?

 Jimbob32, explosive material such as grenades kills people! (hello from TheGreatest!)

Additional Features
Because StabTot was made as a custom channel-bot, it is designed to stay in the main channel at all times (unless Rajakk wants it down for any particular time)...


 * It will unban itself if it's banned.
 * when it detects a ban matching itself.
 * or recieves a 474 (banned-from-channel) message.
 * Full CTCP support.
 * ACTION, CLIENTINFO, FINGER, PING, SOURCE, TIME, USERINFO, VERSION.
 * will handle DCC messages soon, monitoring DCC messages in channels as well as a PM, etc.
 * will handle unknown CTCP messages soon.

Updates
[29th October, 2007] -- Removed flood protection, script wasn't working too good.

[7th November, 2007] -- Added !youtube and !google commands for searching.

[9th November, 2007] -- Added !fight feature, reads from 2 keywords and checks which has the highest result count.

[28th November, 2007] -- Added !convert command, converts multiple measurements.

[2nd December, 2007] -- Upgraded the factoids script to allow and parse   tags.