Gribble: Difference between revisions

From Bitcoin Wiki
Jump to navigation Jump to search
Da2ce7 (talk | contribs)
934 (talk | contribs)
update links
 
(16 intermediate revisions by 4 users not shown)
Line 1: Line 1:
[http://gribble.sourceforge.net/ gribble] is a modified Supybot IRC bot, carrying some useful bitcoin-related commands and factoids. The bot's command sequence is ';;', to issue any command just start a line with two semicolons. You can also issue inline commands with two commas.
gribble is a modified Supybot IRC bot, carrying some useful bitcoin-related commands and factoids. The bot's command sequence is ';;', to issue any command just start a line with two semicolons. You can also issue inline commands with two commas.  


It is present on #bitcoin-dev (bitcoin information queries), #bitcoin-market (real time streaming quotes from bitcoinmarket.com and mtgox.com), #bitcoin-otc (facilitate over-the-counter trading, with the OTC order book and OTC web of trust). You can also PM commands to gribble and it will PM back.
It is present on #bitcoin (general discussion), #bitcoin-core-dev (bitcoin information queries), #bitcoin-otc (facilitate over-the-counter trading, with the OTC order book and OTC web of trust), and a number of other channels. You can also PM commands to gribble and it will PM back.
 
==Source code==
 
The core of gribble is a modified supybot. Code lives [https://github.com/nanotube/supybot_fixes here].
 
The code for bitcoin-related plugins lives [https://github.com/nanotube/supybot-bitcoin-marketmonitor/ here].


==General Info==
==General Info==


To get help on any command, try 'help <command>', to get a list of bitcoin-related commands, run 'apropos bc', and to get a list of factoids, run command 'facts', and click on the link supplied.
To get help on any command, try 'help <command>', to get a list of bitcoin-related aliases, run 'apropos bc', and to get a list of factoids, run command 'facts', and click on the link supplied.


==List of commands==
==List of commands==
Line 11: Line 17:
===Mining/network/hashrate stats===
===Mining/network/hashrate stats===


* '''bc,blocks''' - show the current number of blocks in the bitcoin block chain
* '''hextarget''' - show the current [[difficulty]] target in hex. if optional [[block]] number argument is specified, show target for that block.
* '''bc,calc''' - given a hash rate in Khps, calculate the expected average time to generate a block, at current difficulty. For example, to see the average time for 1000 Khps, run 'bc,calc 1000'.
* '''bcstats''' - show some statistics about the block chain - number of blocks, difficulty, estimated next difficulty target, time to next difficulty
* '''bc,calcd''' - given a hash rate in Khps, and a difficulty level, calculate the expected average time to generate a block at that difficulty. For example, to see the average time for 1000 Khps at difficulty 1, run 'bc,calc 1000 1'.
* '''blocks''' - show the current number of blocks in the bitcoin block chain
* '''bc,diff''' - show the current generation difficulty
* '''blockdiff''' - show difficulty for a specified past block.
* '''bc,diffchange''' - show estimated percent change in difficulty
* '''bounty''' - show current block reward bounty, in BTC.
* '''bc,estimate''' - show the estimate of the next difficulty<ref>[http://www.bitcoin.org/smf/index.php?topic=3247.0 Estimate is usually wildly inaccurate for 100-200 blocks after a difficulty change due to insufficient sample size.]</ref>
* '''diff''' - show the current generation difficulty
* '''bc,gen''' - given the hash rate in Khps, calculate expected BTC generation per day and per hour, at current difficulty.
* '''diffchange''' - show estimated percent change in difficulty
* '''bc,gend''' - given the hash rate in Khps, and a difficulty level, calculate expected BTC generation per day and per hour at that difficulty.
* '''estimate''' - show the estimate of the next difficulty, based on data since last change<ref>[https://bitcointalk.org/index.php?topic=3247.0 Estimate is usually wildly inaccurate for 100-200 blocks after a difficulty change due to insufficient sample size.]</ref>, and for last three days.
* '''bc,hextarget''' - show the current difficulty target in hex.
* '''genprob''' - show the probability of getting at least one block at given hashrate, in a given time period, at given difficulty. uses current difficulty by default.
* '''bc,nethash''' - current 3-day estimate of network hash power, in Ghps.
* '''genrate''' - given the hash rate, and optional difficulty, calculate expected BTC generation per day and per hour. uses current difficulty by default.
* '''bc,nexttarget''' - show the block at which the next difficulty change will take place
* '''gentime''' - given a hash rate, and optional difficulty level, calculate the expected average time to generate a block. uses current difficulty by default.
* '''bc,interval''' - show the average time between blocks, over the past 1000 blocks. If given optional integer argument, use that many blocks for the estimate.
* '''halfreward''' - show estimated time of next block reward halving.
* '''bc,prob''' - show the probability of getting at least one block at given Khps, in a given time period. E.g., to see probability of getting a block at 1000 Khps, in 2 years and 1 week, try 'bc,prob 1000 2y 1w'. Time takes input in years, weeks, days, hours, minutes, and seconds.
* '''interval''' - show the average time between blocks, over the past 1000 blocks. If given optional integer argument, use that many blocks for the estimate.
* '''bc,probd''' - show the probability of getting at least one block at given Khps, given difficulty, in a given time period. Same as '''bc,prob''' but supply a difficulty after the hash rate. E.g., 'bc,probd 10000000 600000 1w 2d'
* '''nethash''' - current 3-day estimate of network hash power, in Ghps.
* '''bc,spotestimate''' - current 3-day estimate of network power, in terms of difficulty.
* '''nextretarget''' - show the block at which the next difficulty change will take place
* '''bc,stats''' - show some statistics about the block chain - number of blocks, difficulty, estimated next difficulty target, time to next difficulty
* '''prevdiff''' - show previous difficulty level
* '''bc,timetonext''' - show estimated time to reach the next difficulty target
* '''prevdiffchange''' - show previous difficulty percent change.
* '''bc,totalbc''' - show total number of bitcoins in existence.
* '''timetonext''' - show estimated time to reach the next difficulty target
 
* '''totalbc''' - show total number of bitcoins in existence.
* '''tblb''' -- given an interval in seconds, calculate the expected time between blocks which take at least <interval> seconds to create.
* '''tslb''' - show time elapsed since last generated block.


Big kudos goes out to theymos for providing a web interface to [http://blockexplorer.com/q/ real time statistics about the bitcoin block chain].
Big kudos goes out to theymos for providing a web interface to [http://blockexplorer.com/q/ real time statistics about the bitcoin block chain], and to http://blockchain.info for a similar service.


===Markets and exchange rates===
===Markets and exchange rates===


* '''bc,bcm''' - show the market snapshot from bitcoinmarket.com
* '''avgprc''' - show average 24h, 7d, and 30d trading prices of BTC in various currencies.
* '''bc,mtgox''' - show the market snapshot for mtgox.com
* '''bc,convert''' - convert bitcoin price, based on Mt.Gox last, to currency you specify. e.g., try 'bc,convert eur' for euros.
* '''bc,avgprc''' - show average 24h, 7d, and 30d trading prices of BTC in various currencies.
* '''bc,24hprc''' - show average 24h price of BTC in USD.
* '''bc,convert''' - convert bitcoin price, based on MtGox last, to currency you specify. e.g., try 'bc,convert eur' for euros.
* '''bc,fx''' - show various currency exchange rates
* '''bc,fx''' - show various currency exchange rates
* '''bc,xag''' - show price of silver in BTC
* '''bc,xau''' - show price of gold in BTC
* '''bc,xau''' - show price of gold in BTC
* '''ticker''' - show pretty-printed mtgox ticker. Takes optional argument of '--bid', '--ask', '--last', '--high', or '--low', to show just that numeric value (useful for command nesting in calculations)
* '''ticker''' - show pretty-printed ticker. takes a number of optional arguments to customize output.
* '''bids''' - given a numeric argument, shows how many total btc are being demanded on MtGox at or over the given price. If optional '--under' argument given, looks under the price.
* '''bids''' - given a numeric argument, shows how many total btc are being demanded on MtGox at or over the given price. If optional '--under' argument given, looks under the price.
* '''asks''' - given a numeric argument, shows how many total btc are being offered on MtGox at or below given price. If optional '--over' argument given, looks over the price.
* '''asks''' - given a numeric argument, shows how many total btc are being offered on MtGox at or below given price. If optional '--over' argument given, looks over the price.
* '''market buy''' - supply number of btc to buy (or with --usd option, number of dollars to spend buying), to see the results of such a market order.
* '''market sell''' - supply number of btc to sell (or with --usd option, number of dollars receive from selling), to see the results of such a market order.
* '''obip''' - order book implied price. finds the weighted average price of BTC by averaging over the order book N coins away from the spread in both directions.
* '''baratio''' - shows total USD volume of bids, total BTC volume of asks, and ratio of the two.


===Mining pool statistics===
===Mining pool statistics===


* '''bc,slushpool''' - show the mining hash rate of the [http://mining.bitcoin.cz slush mining pool], in Khps.
Current hash rates are shown in Mhps.
* '''bc,eligius''' - show the mining hash rate of the Eligius mining pool, in Khps
 
* '''bc,swepool''' - show the mining hash rate of the Swepool mining pool, in Khps
* '''bc,slushpool'''
* '''bc,btcguild''' - show the mining hash rate of the Btcguild mining pool, in Khps
* '''bc,eligius'''
* '''bc,deepbit''' - show the mining hash rate of the Deepbit mining pool, in Khps
* '''bc,p2pool'''
* '''bc,btcguild'''
* '''bc,deepbit'''
* '''bc,ozcoin'''
* '''bc,bitpenny'''


===Other===
===Other===
Line 68: Line 82:


The above list is specifically for bitcoin-related commands. See [http://sourceforge.net/apps/mediawiki/gribble/index.php?title=Using_Gribble_on_Sourceforge this page] for list and help of most commonly used non-bitcoin-related gribble commands. You can find more helpful info on the [http://gribble.sourceforge.net/ gribble] project page, or by exploring the bot with 'list' and 'help' commands.
The above list is specifically for bitcoin-related commands. See [http://sourceforge.net/apps/mediawiki/gribble/index.php?title=Using_Gribble_on_Sourceforge this page] for list and help of most commonly used non-bitcoin-related gribble commands. You can find more helpful info on the [http://gribble.sourceforge.net/ gribble] project page, or by exploring the bot with 'list' and 'help' commands.
==References==
<references />
==Factoids==
* [http://gribble.dreamhosters.com/viewfactoids.php?db=%23bitcoin-dev factoids for #bitcoin-dev channel]
* [http://gribble.dreamhosters.com/viewfactoids.php?db=%23bitcoin-otc factoids for #bitcoin-otc channel]


==Examples==
==Examples==


  <me> ;;bc,blocks
  <me> ;;bc,blocks
  <gribble> 96009
  <gribble> 167418


  <me> Check out the current difficulty! ,,bc,diff
  <me> Check out the current difficulty! ,,bc,diff
  <gribble> 8078.19525793
  <gribble> 1376302.2678864


  <me> Here is a list of all gribble bitcoin commands: ,,(apropos bc)
  <me> Here is a list of all gribble bitcoin commands: ,,(apropos bc)
  <gribble> Alias bc,bcm, Alias bc,blocks, Alias bc,btcex, Alias bc,calc, Alias bc,diff, Alias bc,estimate, Alias bc,mtgox, Alias bc,nexttarget, Alias bc,stats, Alias bc,timetonext, and Alias bc,totalbc
  <gribble> Alias bc,24hprc, Alias bc,altprofit, Alias bc,avgprc, Alias bc,bcm, Alias bc,bitpenny, Alias bc,blockdiff, Alias bc,blocks, Alias bc,bounty, Alias bc,btceur, Alias bc,btcgbp, Alias bc,btcguild, Alias bc,btcrub, Alias bc,btcto, Alias bc,calc, Alias bc,calcd, Alias bc,channels, Alias bc,convert, Alias bc,deepbit, Alias bc,diff, Alias bc,diffchange, Alias bc,eligius, Alias bc,estimate, Alias (2 more messages)
<me> ;;more
<gribble> bc,exchb, Alias bc,fx, Alias bc,gen, Alias bc,gend, Alias bc,halfreward, Alias bc,help, Alias bc,hextarget, Alias bc,intersango, Alias bc,interval, Alias bc,mtgox, Alias bc,mtgoxask, Alias bc,mtgoxbid, Alias bc,mtgoxlast, Alias bc,nethash, Alias bc,nexttarget, Alias bc,ozcoin, Alias bc,p2pool, Alias bc,p2poolalt, Alias bc,p2pooldiff, Alias bc,prevdiff, Alias bc,price, Alias bc,prob, Alias (1 more message)
<someoneelse> ;;more me
<gribble> bc,probd, Alias bc,sectohalve, Alias bc,silkroad, Alias bc,sincelastblock, Alias bc,slushpool, Alias bc,spotestimate, Alias bc,stats, Alias bc,swepool, Alias bc,timetonext, Alias bc,totalbc, Alias bc,tradehill, Alias bc,tslb, Alias bc,wiki, Alias bc,xag, and Alias bc,xau


  <me> ;;list
  <me> ;;list
  <gribble> Admin, Alias, Anonymous, [...]
  <gribble> Admin, Alias, Anonymous, AutoMode, Channel, ChannelLogger, ChannelStats, Conditional, Config, Debug, Dict, Dunno, Factoids, Filter, Format, GPG, GPGExt, Games, Gatekeeper, Google, Herald, Internet, Later, Market, Math, MessageParser, Misc, Network, OTCOrderBook, Owner, Plugin, RSS, RatingSystem, Relay, Reply, Scheduler, Seen, Services, Status, String, Time, Topic, Unix, User, Utilities, (1 more message)


  <me> ;;list Alias
  <me> ;;list Alias
  <gribble> ?, about, add, bc,bcm [...], sfwikisearch, sl, slap, smack, [...]
  <gribble> ?, about, add, bashorg, bc,24hprc, bc,altprofit, bc,avgprc, bc,bcm, bc,bitpenny, bc,blockdiff, bc,blocks, bc,bounty, bc,btceur, bc,btcgbp, bc,btcguild, bc,btcrub, bc,btcto, bc,calc, bc,calcd, bc,channels, bc,convert, bc,deepbit, bc,diff, bc,diffchange, bc,eligius, bc,estimate, bc,exchb, bc,fx, bc,gen, bc,gend, bc,halfreward, bc,help, bc,hextarget, bc,intersango, bc,interval, bc,mtgox, (3 more messages)


  <me> ;;sl bitcoin
  <me> ;;sl bitcoin
  <gribble> http://www.bitcoin.org/ | Bitcoin is a peer-to-peer digital currency. Peer-to-peer (P2P) means [...]
  <gribble> http://bitcoin.org/ | Official site offering documentation, forums and the open source client software which permits to send and receive bitcoins.


  <me> Some commands have more than one argument. Surround with parens.   
  <me> Some commands have more than one argument. Surround with parens.   
  <me> e.g., Is your wallet safe?  ,,(bc,wiki secure wallet)
  <me> e.g., Is your wallet safe?  ,,(bc,wiki secure wallet)
  <gribble> https://en.bitcoin.it/wiki/Securing_your_wallet | Apr 6, 2011 ... However a few [...]
  <gribble> https://en.bitcoin.it/wiki/Securing_your_wallet | Introduction. Wallet security can be broken down into two independent goals: ... Making a new secure wallet, using appropriate long-term protection. For a brief ...
 
<me> ;;market convert 9000 usd to eur
<gribble> 7178.4
 
<me> ;;later tell nanotube Hey, I need to talk to you. Let me know when you're online.
<gribble> The operation succeeded.
 
<me> ;;auth me
<gribble> Request successful for user me, hostmask me!~me@freenode/me. Your challenge string is: freenode:#bitcoin-otc:69a5920b6c5aa77a8f9c34da066ad95b70985da197bd3d917277929ca8fc52e2
<me> ;;verify http://pastebin.com/raw.php?i=your-pgp-signed-challenge-string-in-pasted
<gribble> You are now authenticated for user 'me' with key ABCDEFGH12345678


<me> ;;calc 25 USD in EUR
===List of commands===
<gribble> 25 US dollars = 17.2248 euros


===list of commands===
8ball, ?, about, action, add, alert, alias, announce, announce add, announce list, announce remove, any, aol, apply, apropos, asks, at, auth, author, avgprc, azn, balance, ban add, ban list, ban remove, base, bashorg, bc,24hprc, bc,avgprc, bc,bear, bc,bitpenny, bc,blockdiff, bc,blocks, bc,bounty, bc,btcguild, bc,calc, bc,calcd, bc,convert, bc,deepbit, bc,diff, bc,diffchange, bc,eligius, bc,estimate, bc,fx, bc,gen, bc,gend, bc,help, bc,hextarget, bc,intersango, bc,interval, bc,mktcap, bc,nethash, bc,nexttarget, bc,ozcoin, bc,p2pool, bc,p2poolalt, bc,p2pooldiff, bc,prevdiff, bc,prevdiffchange, bc,price, bc,prob, bc,probd, bc,silkroad, bc,sincelastblock, bc,slushpool, bc,spotestimate, bc,stats, bc,tblb, bc,timetonext, bc,totalbc, bc,tslb, bc,wiki, bc,xag, bc,xau, bcauth,  bcregister, bcstats, bcverify, bids, binary, bitcoinrss, blockdiff, blocks, bold, book, bot, botsnack, boturl, botweb, bounty, bsx, btcauth, btcregister, btcverify, buy, cache, calc, call, cand, capabilities, capability add, capability list, capability remove, capability set, capability setdefault, capability unset, capitalize, ceq, change, changeaddress, changekey, changename, channel, channeldb, channels, channelstats, cheer, chr, cif, clearq, cmd, coin, collect, color, colorize, command, commands, concat, config, configure, connect, contributors, convert, copumpkinprice, cor, countargs, cpu, crypt, ctell, ctime, cut, cxor, cycle, decode, default, defaultcapability, defaultplugin, dehalfop, deleteuser, deop, devoice, dice, dict, dictionaries, diff, diffchange, direct, disable, disconnect, dns, do, doctype, driver, drmath, drmathcheck, ea, eauth, ebay, echangekey, echo, ed, eightball, elapsed, enable, encode, environ, eregister, errno, estimate, ev, eval, events, everify, exec, exn, export, factlist, facts, feed, fetch, field, fight, fit, flush, forget, format, fortune, gangnam, ge, genprob, genrate, gentime, get, getprefix, getrating, gettrust, ghost, give, giveme, giveout, gnu, google, goxlag, goxvol, gribble, gt, h, halfop, halfreward, headers, hebrew, help, hexip, hexlify, hextarget, histsearch, hostmask, hostmask add, hostmask list, hostmask remove, hug, icalc, ident, identify, ignore, ignore add, ignore list, ignore remove, info, infographic, insert, interval, invite, ircquote, isitdown, jeffk, join, kban, key, kick, last, latency, le, learn, leet, len, letmein, levenshtein, limit, list, lithp, lmgtfy, load, lobotomy add, lobotomy list, lobotomy remove, lock, logmark, lower, ls, lt, ltcbtc, lucky, match, md5, mode, moderate, monologue, more, morse, mp, names, nceq, ne, net, netcraft, nethash, networks, nextretarget, nge, ngt, nick, nicks, nle, nlt, nmc,last, nne, notes, notice, obip, oobhresponse, op, ord, otc, outfilter, part, password, pet, petuser, pgp, phonebook, pid, ping, pl0x, plugin, plugins, pong, preferredsupportlink, prefsup, prevdiff, prevdiffchange, private, processes, progstats, quit, rainbow, random, randomize, rank, rate, rated, re, reconnect, redo, refresh, register, reload, remove, rename, reorder, repeat, replace, replies, reply, repr, restore, reverse, ripple, roar, rot13, roulette, rpn, rss, sample, say, scramble, search, seconds, seen, sell, sendquote, separator, server, set, set password, set secure, settrace, sfideasearch, sflaconica, sfticketsearch, sftwitter, sfuserpage, sfwikisearch, sha, show, shrink, shuffle, simpleeval, since, size, sl, slap, slogan, smack, soundex, source, spell, spellit, squish, stats, status, stripcolor, success, sudo, suicide, supa1337, swap, synonym, t, targetproject, tell, templatelink, texthelp, threads, ticker, tickeruk, time, timetonext, title, tmp, tn,blocks, tn,diff, topic, totalbc, translate, trustinfo, tslb, tz, ud, unauth, unban, unbinary, underline, undo, undup, unhexlify, unidentify, units, uniud, unload, unlock, unmoderate, unmorse, unrate, unregister, unrename, unsettrace, until, upkeep, upper, uptime, urlquote, urlunquote, user, username, utime, vacuum, verify, version, view, voice, voiceme, whatis, whoami, whois, wk, wotgraph, wp, wq, wrongulate, wtf, xagusd, xauusd, xor, and yt


?, about, action, add, alert, alias, announce, announce add, announce list, announce remove, any, aol, apply, apropos, asks, at, auth, author, azn, ban add<br />
==Factoids==
ban list, ban remove, base, bashorg, bc,24hprc, bc,avgprc, bc,bcm, bc,blocks, bc,btceur, bc,btcgbp, bc,btcguild, bc,btcrub, bc,calc, bc,calcd, bc,channels, bc,convert, bc,deepbit, bc,diff, bc,diffchange, bc,eligius, bc,estimate, bc,fx, bc,gen, bc,gend, bc,help, bc,hextarget, bc,interval, bc,mtgox, bc,mtgoxask, bc,mtgoxbid, bc,mtgoxlast, bc,nethash, bc,nexttarget, bc,price, bc,prob, bc,probd, bc,slushpool, bc,spotestimate, bc,stats, bc,swepool, bc,timetonext, bc,totalbc, bc,wiki, bc,xau, bids, binary, blockmonitor, bold, book, bot, botsnack, boturl, botweb, buy<br />
 
cache, calc, call, cand, capabilities, capability add, capability list, capability remove, capability set, capability setdefault, capability unset, capitalize, ceq, change, changekey, changename, channel, channeldb, channels, channelstats, check, cheer, chr, cif, clearq, cmd, coin, collect, color, colorize, command, commands, concat, config, configure, connect, contributors, convert, cor, countargs, cpu, crypt, ctell, ctime, cut, cxor, cycle<br />
* [http://gribble.dreamhosters.com/viewfactoids.php?db=%23bitcoin-dev factoids for #bitcoin-dev channel]
decode, default, defaultcapability, defaultplugin, dehalfop, deleteuser, deop, devoice, dice, dict, dictionaries, direct, disable, disconnect, dns, do, doctype, driver<br />
* [http://gribble.dreamhosters.com/viewfactoids.php?db=%23bitcoin-otc factoids for #bitcoin-otc channel]
eauth, ebay, echo, ed, eightball, elapsed, enable, encode, environ, eregister, errno, eval, everify, exec, exn, export<br />
 
factlist, facts, feed, fetch, field, fight, fit, flush, forget, format, fortune<br />
==References==
ge, get, getprefix, getrating, gettrust, ghost, give, giveme, giveout, gnu, google, gribble, gt<br />
<references />
h, halfop, headers, hebrew, help, hexip, hexlify, histsearch, hostmask, hostmask add, hostmask list, hostmask remove, hug<br />
icalc, ident, identify, ignore, ignore add, ignore list, ignore remove, info, insert, invite, ircquote, isitdown<br />
jeffk, join<br />
kban, key, kick<br />
last, latency, le, learn, leet, len, levenshtein, limit, list, lithp, load, lobotomy add, lobotomy list, lobotomy remove, lock, logmark, lower, ls, lt, lucky<br />
match, md5, mode, moderate, monologue, more, morse, mp<br />
names, nceq, ne, net, netcraft, networks, nge, ngt, nick, nicks, nle, nlt, nne, notes, notice<br />
oobhresponse, op, ord, otc, outfilter<br />
part, password, pet, petuser, pgp, phonebook, pid, ping, plugin, plugins, pong, private, processes, progstats<br />
quit<br />
rainbow, random, rank, rate, rated, re, reconnect, redo, refresh, register, reload, remove, rename, reorder, repeat, replace, replies, reply, repr, restore, reverse, rot13, roulette, rpn, rss<br />
sample, say, scramble, search, seconds, seen, sell, sendquote, separator, server, set, set password, set secure, settrace, sfideasearch, sflaconica, sfticketsearch, sfuserpage, sfwikisearch, sha, show, shrink, shuffle, simpleeval, since, size, sl, slap, slogan, smack, soundex, source, spell, spellit, squish, start, stats, status, stop, stripcolor, success, sudo, suicide, supa1337, swap, synonym<br />
targetproject, tell, texthelp, threads, ticker, time, title, tn,blocks, tn,diff, topic, translate, trustinfo<br />
ud, unauth, unban, unbinary, underline, undo, undup, unhexlify, unidentify, units, uniud, unload, unlock, unmoderate, unmorse, unrate, unregister, unrename, unsettrace, until, upkeep, upper, uptime, urlquote, urlunquote, user, username<br />
vacuum, verify, version, view, voice<br />
whatis, whoami, whois, wk, wp, wtf<br />
xor<br />
yt

Latest revision as of 19:11, 22 November 2017

gribble is a modified Supybot IRC bot, carrying some useful bitcoin-related commands and factoids. The bot's command sequence is ';;', to issue any command just start a line with two semicolons. You can also issue inline commands with two commas.

It is present on #bitcoin (general discussion), #bitcoin-core-dev (bitcoin information queries), #bitcoin-otc (facilitate over-the-counter trading, with the OTC order book and OTC web of trust), and a number of other channels. You can also PM commands to gribble and it will PM back.

Source code

The core of gribble is a modified supybot. Code lives here.

The code for bitcoin-related plugins lives here.

General Info

To get help on any command, try 'help <command>', to get a list of bitcoin-related aliases, run 'apropos bc', and to get a list of factoids, run command 'facts', and click on the link supplied.

List of commands

Mining/network/hashrate stats

  • hextarget - show the current difficulty target in hex. if optional block number argument is specified, show target for that block.
  • bcstats - show some statistics about the block chain - number of blocks, difficulty, estimated next difficulty target, time to next difficulty
  • blocks - show the current number of blocks in the bitcoin block chain
  • blockdiff - show difficulty for a specified past block.
  • bounty - show current block reward bounty, in BTC.
  • diff - show the current generation difficulty
  • diffchange - show estimated percent change in difficulty
  • estimate - show the estimate of the next difficulty, based on data since last change[1], and for last three days.
  • genprob - show the probability of getting at least one block at given hashrate, in a given time period, at given difficulty. uses current difficulty by default.
  • genrate - given the hash rate, and optional difficulty, calculate expected BTC generation per day and per hour. uses current difficulty by default.
  • gentime - given a hash rate, and optional difficulty level, calculate the expected average time to generate a block. uses current difficulty by default.
  • halfreward - show estimated time of next block reward halving.
  • interval - show the average time between blocks, over the past 1000 blocks. If given optional integer argument, use that many blocks for the estimate.
  • nethash - current 3-day estimate of network hash power, in Ghps.
  • nextretarget - show the block at which the next difficulty change will take place
  • prevdiff - show previous difficulty level
  • prevdiffchange - show previous difficulty percent change.
  • timetonext - show estimated time to reach the next difficulty target
  • totalbc - show total number of bitcoins in existence.
  • tblb -- given an interval in seconds, calculate the expected time between blocks which take at least <interval> seconds to create.
  • tslb - show time elapsed since last generated block.

Big kudos goes out to theymos for providing a web interface to real time statistics about the bitcoin block chain, and to http://blockchain.info for a similar service.

Markets and exchange rates

  • avgprc - show average 24h, 7d, and 30d trading prices of BTC in various currencies.
  • bc,convert - convert bitcoin price, based on Mt.Gox last, to currency you specify. e.g., try 'bc,convert eur' for euros.
  • bc,fx - show various currency exchange rates
  • bc,xag - show price of silver in BTC
  • bc,xau - show price of gold in BTC
  • ticker - show pretty-printed ticker. takes a number of optional arguments to customize output.
  • bids - given a numeric argument, shows how many total btc are being demanded on MtGox at or over the given price. If optional '--under' argument given, looks under the price.
  • asks - given a numeric argument, shows how many total btc are being offered on MtGox at or below given price. If optional '--over' argument given, looks over the price.
  • market buy - supply number of btc to buy (or with --usd option, number of dollars to spend buying), to see the results of such a market order.
  • market sell - supply number of btc to sell (or with --usd option, number of dollars receive from selling), to see the results of such a market order.
  • obip - order book implied price. finds the weighted average price of BTC by averaging over the order book N coins away from the spread in both directions.
  • baratio - shows total USD volume of bids, total BTC volume of asks, and ratio of the two.

Mining pool statistics

Current hash rates are shown in Mhps.

  • bc,slushpool
  • bc,eligius
  • bc,p2pool
  • bc,btcguild
  • bc,deepbit
  • bc,ozcoin
  • bc,bitpenny

Other

  • bc,help - show list of 'bc,' commands - same as 'apropos bc'.
  • bc,wiki - fetch a link to a page in this wiki, based on a search string. For example, to see a link to this page, try 'bc,wiki gribble'.

bitcoin-otc related info

General commands

The above list is specifically for bitcoin-related commands. See this page for list and help of most commonly used non-bitcoin-related gribble commands. You can find more helpful info on the gribble project page, or by exploring the bot with 'list' and 'help' commands.

Examples

<me> ;;bc,blocks
<gribble> 167418
<me> Check out the current difficulty! ,,bc,diff
<gribble> 1376302.2678864
<me> Here is a list of all gribble bitcoin commands: ,,(apropos bc)
<gribble> Alias bc,24hprc, Alias bc,altprofit, Alias bc,avgprc, Alias bc,bcm, Alias bc,bitpenny, Alias bc,blockdiff, Alias bc,blocks, Alias bc,bounty, Alias bc,btceur, Alias bc,btcgbp, Alias bc,btcguild, Alias bc,btcrub, Alias bc,btcto, Alias bc,calc, Alias bc,calcd, Alias bc,channels, Alias bc,convert, Alias bc,deepbit, Alias bc,diff, Alias bc,diffchange, Alias bc,eligius, Alias bc,estimate, Alias (2 more messages)
<me> ;;more
<gribble> bc,exchb, Alias bc,fx, Alias bc,gen, Alias bc,gend, Alias bc,halfreward, Alias bc,help, Alias bc,hextarget, Alias bc,intersango, Alias bc,interval, Alias bc,mtgox, Alias bc,mtgoxask, Alias bc,mtgoxbid, Alias bc,mtgoxlast, Alias bc,nethash, Alias bc,nexttarget, Alias bc,ozcoin, Alias bc,p2pool, Alias bc,p2poolalt, Alias bc,p2pooldiff, Alias bc,prevdiff, Alias bc,price, Alias bc,prob, Alias (1 more message)
<someoneelse> ;;more me
<gribble> bc,probd, Alias bc,sectohalve, Alias bc,silkroad, Alias bc,sincelastblock, Alias bc,slushpool, Alias bc,spotestimate, Alias bc,stats, Alias bc,swepool, Alias bc,timetonext, Alias bc,totalbc, Alias bc,tradehill, Alias bc,tslb, Alias bc,wiki, Alias bc,xag, and Alias bc,xau
<me> ;;list
<gribble> Admin, Alias, Anonymous, AutoMode, Channel, ChannelLogger, ChannelStats, Conditional, Config, Debug, Dict, Dunno, Factoids, Filter, Format, GPG, GPGExt, Games, Gatekeeper, Google, Herald, Internet, Later, Market, Math, MessageParser, Misc, Network, OTCOrderBook, Owner, Plugin, RSS, RatingSystem, Relay, Reply, Scheduler, Seen, Services, Status, String, Time, Topic, Unix, User, Utilities, (1 more message)
<me> ;;list Alias
<gribble> ?, about, add, bashorg, bc,24hprc, bc,altprofit, bc,avgprc, bc,bcm, bc,bitpenny, bc,blockdiff, bc,blocks, bc,bounty, bc,btceur, bc,btcgbp, bc,btcguild, bc,btcrub, bc,btcto, bc,calc, bc,calcd, bc,channels, bc,convert, bc,deepbit, bc,diff, bc,diffchange, bc,eligius, bc,estimate, bc,exchb, bc,fx, bc,gen, bc,gend, bc,halfreward, bc,help, bc,hextarget, bc,intersango, bc,interval, bc,mtgox, (3 more messages)
<me> ;;sl bitcoin
<gribble> http://bitcoin.org/ | Official site offering documentation, forums and the open source client software which permits to send and receive bitcoins.
<me> Some commands have more than one argument. Surround with parens.  
<me> e.g., Is your wallet safe?  ,,(bc,wiki secure wallet)
<gribble> https://en.bitcoin.it/wiki/Securing_your_wallet | Introduction. Wallet security can be broken down into two independent goals: ... Making a new secure wallet, using appropriate long-term protection. For a brief ...
<me> ;;market convert 9000 usd to eur
<gribble> 7178.4
<me> ;;later tell nanotube Hey, I need to talk to you. Let me know when you're online.
<gribble> The operation succeeded.
<me> ;;auth me
<gribble> Request successful for user me, hostmask me!~me@freenode/me. Your challenge string is: freenode:#bitcoin-otc:69a5920b6c5aa77a8f9c34da066ad95b70985da197bd3d917277929ca8fc52e2
<me> ;;verify http://pastebin.com/raw.php?i=your-pgp-signed-challenge-string-in-pasted
<gribble> You are now authenticated for user 'me' with key ABCDEFGH12345678

List of commands

8ball, ?, about, action, add, alert, alias, announce, announce add, announce list, announce remove, any, aol, apply, apropos, asks, at, auth, author, avgprc, azn, balance, ban add, ban list, ban remove, base, bashorg, bc,24hprc, bc,avgprc, bc,bear, bc,bitpenny, bc,blockdiff, bc,blocks, bc,bounty, bc,btcguild, bc,calc, bc,calcd, bc,convert, bc,deepbit, bc,diff, bc,diffchange, bc,eligius, bc,estimate, bc,fx, bc,gen, bc,gend, bc,help, bc,hextarget, bc,intersango, bc,interval, bc,mktcap, bc,nethash, bc,nexttarget, bc,ozcoin, bc,p2pool, bc,p2poolalt, bc,p2pooldiff, bc,prevdiff, bc,prevdiffchange, bc,price, bc,prob, bc,probd, bc,silkroad, bc,sincelastblock, bc,slushpool, bc,spotestimate, bc,stats, bc,tblb, bc,timetonext, bc,totalbc, bc,tslb, bc,wiki, bc,xag, bc,xau, bcauth, bcregister, bcstats, bcverify, bids, binary, bitcoinrss, blockdiff, blocks, bold, book, bot, botsnack, boturl, botweb, bounty, bsx, btcauth, btcregister, btcverify, buy, cache, calc, call, cand, capabilities, capability add, capability list, capability remove, capability set, capability setdefault, capability unset, capitalize, ceq, change, changeaddress, changekey, changename, channel, channeldb, channels, channelstats, cheer, chr, cif, clearq, cmd, coin, collect, color, colorize, command, commands, concat, config, configure, connect, contributors, convert, copumpkinprice, cor, countargs, cpu, crypt, ctell, ctime, cut, cxor, cycle, decode, default, defaultcapability, defaultplugin, dehalfop, deleteuser, deop, devoice, dice, dict, dictionaries, diff, diffchange, direct, disable, disconnect, dns, do, doctype, driver, drmath, drmathcheck, ea, eauth, ebay, echangekey, echo, ed, eightball, elapsed, enable, encode, environ, eregister, errno, estimate, ev, eval, events, everify, exec, exn, export, factlist, facts, feed, fetch, field, fight, fit, flush, forget, format, fortune, gangnam, ge, genprob, genrate, gentime, get, getprefix, getrating, gettrust, ghost, give, giveme, giveout, gnu, google, goxlag, goxvol, gribble, gt, h, halfop, halfreward, headers, hebrew, help, hexip, hexlify, hextarget, histsearch, hostmask, hostmask add, hostmask list, hostmask remove, hug, icalc, ident, identify, ignore, ignore add, ignore list, ignore remove, info, infographic, insert, interval, invite, ircquote, isitdown, jeffk, join, kban, key, kick, last, latency, le, learn, leet, len, letmein, levenshtein, limit, list, lithp, lmgtfy, load, lobotomy add, lobotomy list, lobotomy remove, lock, logmark, lower, ls, lt, ltcbtc, lucky, match, md5, mode, moderate, monologue, more, morse, mp, names, nceq, ne, net, netcraft, nethash, networks, nextretarget, nge, ngt, nick, nicks, nle, nlt, nmc,last, nne, notes, notice, obip, oobhresponse, op, ord, otc, outfilter, part, password, pet, petuser, pgp, phonebook, pid, ping, pl0x, plugin, plugins, pong, preferredsupportlink, prefsup, prevdiff, prevdiffchange, private, processes, progstats, quit, rainbow, random, randomize, rank, rate, rated, re, reconnect, redo, refresh, register, reload, remove, rename, reorder, repeat, replace, replies, reply, repr, restore, reverse, ripple, roar, rot13, roulette, rpn, rss, sample, say, scramble, search, seconds, seen, sell, sendquote, separator, server, set, set password, set secure, settrace, sfideasearch, sflaconica, sfticketsearch, sftwitter, sfuserpage, sfwikisearch, sha, show, shrink, shuffle, simpleeval, since, size, sl, slap, slogan, smack, soundex, source, spell, spellit, squish, stats, status, stripcolor, success, sudo, suicide, supa1337, swap, synonym, t, targetproject, tell, templatelink, texthelp, threads, ticker, tickeruk, time, timetonext, title, tmp, tn,blocks, tn,diff, topic, totalbc, translate, trustinfo, tslb, tz, ud, unauth, unban, unbinary, underline, undo, undup, unhexlify, unidentify, units, uniud, unload, unlock, unmoderate, unmorse, unrate, unregister, unrename, unsettrace, until, upkeep, upper, uptime, urlquote, urlunquote, user, username, utime, vacuum, verify, version, view, voice, voiceme, whatis, whoami, whois, wk, wotgraph, wp, wq, wrongulate, wtf, xagusd, xauusd, xor, and yt

Factoids

References