Git
Git is a Infobot, also known as Estaga's son. Git has been around on the 'private' irc network since about 2000, it's database has been transplanted through various machines throughout the years but luckily it's still alive and kicking and happily serving everybody with their queries.
Over the years several limitations have been noticed with Infobot, but luckily due to the semi-modular fashion it was written, it's quite easy to script simple add-ons to the bot, our attempt at documenting most of the modules are below. If you're more interested in 'normal' usuage of the bot (as a newbie or such) I suggest you read the offical guide here.
If you are here because of the 'AnnounceBot' in the channel, please go here
bus
(by Estaga)
This is a scripty that checks Transport for London's website for updates of any problems on bus routes, perfect for going home/to work (:
Help page:
14:53:52 <Estaga> bus help 14:53:53 <Git> Syntax is: bus <busnr>
So if you have a specific bus route:
14:53:56 <Estaga> bus N50 14:53:58 <Git> This bus route N50 has no worries!
A faulty one would look something like this:
14:54:38 <Estaga> bus N47 14:54:40 <Git> BROOKMILL ROAD :DEPTFORD: DIVERSION: From 2000 Sunday 10 September until late December, Routes 47 225 and N47 are diverted in both directions between LEWISHAM HIGH STREET and DEPTFORD BROADWAY/DEPTFORD CHURCH STREET, not serving Loampit Vale, Jerrard Street, Thurston Road or Brookmill Road. Diverted buses operate via Lewisham Road, Blackheath Road and Deptford Bridge Station, serving all existing bus stops. Buses are expected to experience long delays in the area.
chuck
(by sexybalrog)
Chuck grabs from the interweb a Chuck Norris fact, this script takes no arugments...
15:03:47 <Estaga> chuck 15:03:48 <Git> Sticks and stones may break your bones but Chuck Norris words will kill you.
define
(by Estaga)
Define scrapes Google by using the "define:" keyword, this lets google look for a definition of whatever you are looking for.
Define has two modes, normal definition mode where you just enter the word(s) you want to know about - or - you can look for definitions that's like the one you entered.
Example of a normal definition:
12:25:15 <Estaga> define rate lock 12:25:15 <Git> A commitment issued by a lender to a borrower or other mortgage originator guaranteeing a specified interest rate for a specified period of time. | The amount of time that a lender will guarantee a loan's interest rate. Once you've locked in the interest rate on a loan, the lender will guarantee that rate for a certain period of time, usually for 30, 45 or 60 days. | A guaranteed rate of interest for a specific time frame on a mortgage loan.
Example of like:
12:25:10 <Estaga> define like lock 12:25:10 <Git> Also have: lock-in |lock in |air lock |lock up |rate lock |lock box |lever lock |caps lock |num lock |lock time
dial
(by Trax)
This script should say in which area or network a number belongs to, something like:
15:01:19 <Estaga> dial 2721 15:01:20 <Git> The area code for Cape Town in Western Cape Peninsula is +2721
[edit]
distance
(by Estaga)
A quick hack to find the distance between one UK postcode to another, this uses Google Maps to figure it out. Postcodes should not have its usual spaces when being entered.
14:13:33 <Estaga> distance E122SX WA139WE 14:13:35 <Git> Google says that by car from E122SX to WA139WE should be 197 miles (about 4 hours 18 mins)
[edit]
dlr
(by Estaga)
Simple script to check the Transport for London's webpage for any problems on the Docklands Light Rail line, this command takes no arguments, example:
14:57:01 <Estaga> dlr 14:57:03 <Git> Good service in operation.
[edit]
(by Estaga)
Sends email to specified address with specified text. There are some antispam measures built in and this is being watched for spammers! Syntax is:
<Estaga> email example@example.com this is a example email sent via Git <Git> Mail sent successfully to example@example.com
The receiver will get a e-mail saying which nickname at which time said what and how to respond in-case it's SPAM.
[edit]
exchange
(by Estaga)
Exchanges one currency to another, I replaced the infobot built-in script with mine as it had some hassles. Currencies must be their shorened 3-character symbols. It gets this exchange information from Xe.com.
<Estaga> exchange 1 GBP to ZAR <Git> 1.00 United Kingdom Pounds = 11.5729 South Africa Rand at 2005.09.15 07:19:28 UTC.
<Estaga> exchange 1 GBP to EUR <Git> 1.00 United Kingdom Pounds = 1.48709 Euro at 2005.09.15 07:19:28 UTC.
<Estaga> exchange 1 USD to ZAR <Git> 1.00 United States Dollars = 6.38058 South Africa Rand at 2005.09.15 07:20:28 UTC.
[edit]
geoip
(by Estaga)
Uses the 'geoiplookup' program to figure out in which country a DNS name or IP address is.
<Estaga> geoip www.cnn.com <Git> GeoIP Country Edition: US, United States <Estaga> geoip 196.25.1.1 <Git> GeoIP Country Edition: ZA, South Africa
[edit]
googlecalc
(by Estaga)
Does Google Calculations (really does a google.com search but will only reply if the google calculator was used), this is the preffered way to do some calculations as the built-in infobot one is rather limited.
<Estaga> googlecalc 1 cubic lightyear in imperial tablespoons <Git> Google says: 1 (cubic lightyear) = 4.76812836 × 10^52 Imperial
<Estaga> googlecalc 1 byte per second in megabits per year <Git> Google says: 1 (byte per second) = 240.760238 megabits per year
[edit]
googlewhack
(by Estaga)
Performs a Googlewhack search on google.com.
<Estaga> googlewhack binary entropy <Git> Googlewhack for: binary entropy = 1,400,000 results
[edit]
gspell
(by sexybalrog)
Uses google.com to see if a word is spelt correctly, eg.
15:03:06 <Estaga> gspell zimbabwa 15:03:09 <Git> Google decrees that you're looking for zimbabwe
[edit]
ipcalc
(by Estaga)
IpCalc is to calculate the minimum/maximum hosts in a subnet, some other functionality will propably be added once more is needed *grin*. Syntax:
14:34:10 <Estaga> ipcalc help 14:34:25 <Git> git: ipcalc 192.168.1.0/24
So, min and max usuable ip's on the above subnet would be:
14:43:01 <Estaga> ipcalc 192.168.1.0/24 14:43:02 <Git> HostMinMax: 192.168.1.1 192.168.1.254
[edit]
jokes
(by Trax)
Grabs a joke from some online resource, this script takes no arguments:
15:09:43 <Estaga> jokes 15:09:44 <Git> What do you call two banana peelings? A PAIR OF SLIPPERS
It also has a adult-themed dirty version, called like this:
14:38:24 <Estaga> jokes dirty 14:38:24 <Git> "The length of a film should be directly related to the endurance of the human bladder." Alfred Hitchcock.
[edit]
jse
(by Estaga)
Queries the Johannesburg Stock Exchange for current USD,GBP & EUR rates.
<Estaga> jse common <Git> JSE Reports at: Thu Sep 15 2005 09:12:44 | the Dollar at 6.3926 UP 0.54% Pound 11.6050 UP 0.24% Euro 7.8030 UP 0.34%
This script is rather dated but still works, the 'exchange' script gets used usually in its place.
[edit]
mac
(by Estaga)
MAC checks online what vendor the given MAC address belongs to, example:
14:59:06 <Estaga> mac 00:16:3E:04:4B:E1 14:59:08 <Git> ID: 00163E VENDOR: Xensource, Inc.
MAC address can be given with : (Unix) or - (Windows) notation.
[edit]
mr-t
(by Estaga stolen from sexybalrog's script)
Mr-T grabs from the interweb a Mr-T fact, this script takes no arugments...
14:27:57 <Estaga> mr-t 14:27:58 <Git> There are 5 births a second. There are 1.8 deaths a second. Mr. T pities 3 fools a second.
[edit]
news
(by Estaga)
This script goes to news.google.com and searches whatever term you give it,
14:44:36 <Estaga> news nuclear korea 14:44:37 <Git> Cape Cod Times, MA - 2 hours ago ... We need to prevent a nuclear North Korea, Abe said.
[edit]
nslookup
(by Estaga)
This replaces the built-in infobot one due to some historical errors in the script - syntax as you can guess is just a hostname:
14:58:32 <Estaga> nslookup www.bbc.co.uk 14:58:34 <Git> www.bbc.co.uk is an alias for www.bbc.net.uk.
[edit]
ping
(by Estaga)
I ripped out the internal infobot ping so I can do better pings (that work) so here is the syntax:
14:32:01 <Estaga> ping help 14:32:02 <Git> git: ping <hostname|ip>
So,
14:32:49 <Estaga> git: ping www.bbc.co.uk 14:33:36 <Git> www.bbc.co.uk: 2 packets transmitted, 2 received, 0% packet loss, time 25002ms rtt min/avg/max/mdev = 0.860/1.150/1.441/0.292 ms
[edit]
scuttle
(by sexybalrog)
Scuttle let's you access the boeregeeks scuttle website. You can check recent scuttles, search all scuttles, scuttle new links and also describe them. To access multiple results a smart and amazing and superdooped natkak stateful hyper-protocol has been implemented. You need to be registerd onboeregeeks scuttle if you want to edit or create entries.
General Help:
<Estaga> git: scuttle help <Git> examples: scuttle random|scuttle last|scuttle recent|scuttle recent 5|scuttle keyword food|scuttle food|scuttle recent food|scuttle user trax|scuttle recent user chewy|scuttle tag python|scuttle age 0-3|scuttle age 5-8|scuttle 24h|scuttle url .co.za|scuttle more|scuttle user brick python age 50-100|scuttle userstats|scuttle stats|scuttle nicktest|scuttle identify realnick|scuttle http://www.cnn.com tag1 tag2 tag3|scuttle describe Put description here
[edit]
Searching
<Estaga> git: scuttle linux <Git> The iPod killer could be a Penguin - Neoseeker News Article - <http://www.neoseeker.com/news/story/6313/> - linux \"iPod killer\" - tags: linux, gadgets -- scuttled by lerouxb at 2006-11-27 07:07:21 (54 more left) <Estaga> git: scuttle more <Git> Knab is not a bot - <http://knab.sourceforge.net/> - tags: irc, linux, software -- scuttled by brick at 2006-05-17 16:50:19 (53 more left)
[edit]
Authentication
My scuttle username is 'fbotha' so to make Estaga = fbotha,
<Estaga> git: scuttle identify fbotha <Git> Okay, i'll try to remember that you're fbotha
[edit]
Adding a new scuttle
Skryf iets hie, jou lui balrog
[edit]
skireport
(by shadow)
I want to get the latest cheap ski deals by month so
skireport dec
will give you the cheapest deal for that month
More to be added and refined later
[edit]
tcalc
(by sexybalrog)
Time-Calculator is for working out the difference in time, syntax help is:
14:30:11 <Estaga> tcalc help 14:30:13 <Git> Usage: tcalc <time1>-<time2> | <time1>+<timedelta>
For example, the difference between two times:
14:30:26 <Estaga> tcalc 14:00-13:00 14:30:28 <Git> 0 days, 1 hours, 0 minutes and 0.000000 seconds
Or, if you need to get to a place at 14:00 and it takes you 2h30mins to get there what time to leave?
14:30:38 <Estaga> tcalc 14:00 + -2:30 14:30:40 <Git> 2006-10-09 11:30:00.00
[edit]
time
(by Estaga)
Shows the local time in a city, if multiple cities match we show all of them..
<Estaga> git: time singapore <Git> Time in Singapore Thu 4:51 PM <Estaga> git: time london <Git> Time in London (Canada) Thu 3:51 AM |London (U.K.) Thu 8:51 AM
[edit]
tv
(by Estaga)
Searches Tvrage.com for the next/last episode of a show, the show must be registered in tv's internal database, if you want to have a show added ask Estaga to add it for you.
Example:
<Estaga> git: tv bsg <Git> Next Episode: 47: 3x14 | The Woman King (Feb/11/2007)
[edit]
uncyclopedia
(by Estaga)
Uncylcopedia looks up the argument(s) on the Uncyclopedia site, much like the Wikipedia plugin.
Example:
15:05:19 <Estaga> uncyclopedia george bush 15:05:20 <Git> I do not care about a man who cannot perform his duties nor restrain his retardisms.
[edit]
uni
(by sexybalrog)
Shows and searches Unicode characters
Help:
<Estaga> git: uni help <Git> I demand proper arguments. To search by word (not substrings!): uni euro | To find combinations: uni comb x | To get info for a char: uni info x | To draw from hex: uni hex 20ac | To draw from decimal: uni dec 8364
Example:
<sexybalrog> git: uni pound <Git> Searched for pound: £ £ <sexybalrog> git: uni info # <Git> That # is a NUMBER SIGN. It's code is 35 (hex: 0x23). UTF8 is #.
[edit]
urban
(by Estaga)
Uses urbandictionary.com to look up words, it has two methods of being invoked, you can call it directly worth a word, or use the word 'like <keyword>' to let it search for words on urbandictionary.com like the one you gave, examples,
Help:
14:28:03 <Estaga> urban help 14:28:21 <Git> git: urban <key words|like>. I will then search urbandictionary.com
Like:
14:26:18 <Estaga> urban like bush 14:26:20 <Git> busch league,busch light,Busch Stadium,busche,buschmann,Buschtulant,Buschwhampted,Buscuit buscuits,busdown,busdriver,buse,Buseified,Busemas,busenbark Buser,Busey,Buseyed,busfucked,Busgo,bush administration,bush anchor,Bush Babies,bush baby,bush banger,bush bash,bush basher,bush bashing,bush bitch,bush blinded,bush breath,Bush Bulge,bush bumper,bush burial,bush burn,bush burner,bush butt fuck,bush club,bush confidence,bush cookie,Bush Cutter,Bush Democrats,Bush Derangemen
And a query:
14:26:46 <Estaga> urban bush democrats 14:26:47 <Git> Democrats who voted for Bush,not once,but twice! In other words,me. ^___^ ~ He's not Bill Clinton,he gets my vote! He's not Al Gore,He gets my vote! He's not John Kery,he gets my vote! Now I fully understand and appreciate the Reagan Democrats who I used to hate back when I was a young radical lefty. I'm proud to be a Bush Democrat! Bush Democrats ROCK!
[edit]
weather
(by Estaga updated by Shadow)
I ripped out the weather.com module that comes with infobot and replaced it with my own one, the database of city names it uses gets inserted by hand, but on the plus side, you can have friendly names.
<Estaga> weather london <Git> Updated Sep 30 04:20, at London, United Kingdom it's Mostly Cloudy and is 18.8 C, it feels like 18.8 with wind From SW at 11.2 km/h and visibility of 9.9 km
It also supports a prediction for tomorrow's weather with the keyword "tomorrow", although I need to figure out metric conversion for this middleofsentence ones still :P
<Estaga> weather london tomorrow <Git> London, United Kingdom tomorrow: Partly cloudy. High near 60F. Winds W at 10 to 15 mph.
[edit]
webserver
(by Estaga)
Simple script that connects to destination machine on port 80 and gives a invalid HTTP command, this usually results in the server identifying itself, help syntax says:
14:49:44 <Estaga> webserver help 14:49:45 <Git> Syntax is: webserver <hostname> - I will then connect to that webserver and try and find out what it is running for you
Example:
14:49:46 <Estaga> webserver www.cnn.com 14:49:53 <Git> www.cnn.com says: Apache
[edit]
weeknumber
(by Estaga)
After toomany timesheet issues I wrote this quick one to convert a current date to whichever week of the year it is, help syntax:
14:51:24 <Estaga> weeknumber help 14:51:25 <Git> I convert US given <YYYY-MM-DD> dates to week numbers for you, ie.: git weeknumber 2006-09-10 will return 37
Ie:
14:52:26 <Estaga> weeknumber 2006-10-09 14:52:27 <Git> 2006-10-09 gives a week number of 41
[edit]
wikiaf
(by Estaga)
Looks up the word(s) on the english wikipedia site, example:
15:11:00 <Estaga> wikiaf warmbad 15:11:00 <Git> Die verkiesing van die raad van trustees is verby.
[edit]
wikipedia
(by sexybalrog)
Looks up the word(s) on the english wikipedia site, example:
15:07:39 <Estaga> wikipedia francois botha 15:07:42 <Git> Francois Botha, also known as Frans Botha is a South African boxer, nicknamed the "White Buffalo," Francois Botha has had a relatively distinguished career as a heavyweight boxer.
[edit]
wtf
(by Trax)
WTF or 'Where the Fsck' helps us locate information we 'lose' about each other all the time, it's help gets called like this:
14:20:53 <Estaga> wtf help 14:20:55 <Git> What the fuck! Ask me 'wtf <nick> [phone, alias, birthday, address, jabber, email, gps]', 'wtf query <nick>', update info with 'wtf store <nick> <field> <value>' or get aliases for field with 'wtf aliases <field>'.
To get a full query just do this:
14:20:58 <Estaga> wtf query brick 14:20:59 <Git> brick.phone is +xyz, office +xyp, brick.alias is bricksan, neilen, neilen marais, marais, poesneus, brick.address is 12 Wherever, Whatever, Stellenbosch, 7600, brick.email is blah@blah.com
I swear by God, your blogging seems very creative to me. Actually, I was looking for the right church financing in USA expert for our church and got help by complete directory of church lenders.It's awesome.
ReplyDelete