Hey guys, I've been working on /u/crypto_bot for some time now. It provides a bunch of features that I hope will enhance your experience on /r/bitcoin (and any other subreddit). You can call it by mentioning it in a comment. I started working on this a few days ago. I'm constantly adding new features and will update this post when I do, but if you're interested I'll post all updates and some tips at /r/crypto_bot. Please either comment here, message me, or post there if you'd like to report a bug, request a feature, or offer feedback. There's also one hidden command :)
You can call multiple commands in one comment. Here's a description of the commands you can use:
Market Data:
/u/crypto_bot
Responds with the USD price of one bitcoin from an average of six of the top bitcoin exchanges (BTC-E, Bitstamp, Bitfinex, Coinbase, Kraken, Cryptsy).
/u/crypto_bot ticker
Responds with the USD price of one bitcoin at seven exchanges (all of the ones listed above, plus LocalBitcoins). Also lists the average at the bottom.
/u/crypto_bot [exchange]
Responds with the USD price of one bitcoin from [exchange] (any of the seven listed above).
/u/crypto_bot [litecoin|ltc|dogecoin|doge]
Responds with the USD price of one litecoin, or the price of 1 doge and 1,000 doge.
/u/crypto_bot litecoin|ltc [exchange]
Responds with the USD price of one litecoin from BTC-E, Bitfinex, Kraken, or Cryptsy.
/u/crypto_bot [currency]
Responds with the price of one bitcoin in the specified currency. Available currencies (symbols): JPY, CNY, SGD, HKD, CAD, NZD, AUD, CLP, GBP, DKK, SEK, ISK, CHF, BRL, EUR, RUB, PLN, THB, KRW, TWD.
Information:
/u/crypto_bot [about|info] [arg]
Responds with a short description about [arg], as well as a link to an external site (Wikipedia, bitcoin.it, and some others) for more information. You can list multiple arguments and get a description for each. Available arguments: bitcoin, block chain, transaction, address, genesis, satoshi, mining, confirmation, coinbase, gox, cold wallet, hot wallet.
/u/crypto_bot legal
Responds with a chart about the legality of bitcoin in 40 countries, copied straight from Wikipedia.
/u/crypto_bot [explain transaction delay|explain tx delay]
Responds with an explanation of why transactions may take longer to confirm (the bot specifically discusses spam-transaction attacks in this command).
Network information/tools:
/u/crypto_bot difficulty
Responds with the current difficulty of the bitcoin network.
/u/crypto_bot [height|number of blocks]
Responds with the current height of the block chain.
/u/crypto_bot retarget
Responds with what block the difficulty will recalculate at, as well as how many blocks until the network reaches that block.
/u/crypto_bot [unconfirmed transactions|unconfirmed tx]
Responds with the current number of unconfirmed transactions.
/u/crypto_bot [new address|generate address]
Responds with a newly-generated public and private key. This is mainly to provide an explanation of what both look like, and contains a clear warning to not use or send bitcoins to the address.
/u/crypto_bot blockinfo [height]
Responds with information about block #[height], including its hash, time discovered, and number of transactions.
/u/crypto_bot [address]
Responds with information about [address], including its balance and number of transactions.
/u/crypto_bot [transaction_id]
Responds with information about [transaction_id], including what block it was included in, its size, and its inputs and outputs.
Calculators:
/u/crypto_bot calc <# miningspeed> [#][w] [#][kwh] [#][difficulty] [hc$#] [$#] [#%]
Responds with calculations and information about how a miner would do with the above data (mining calculator). The only required field is mining speed. Order of the arguments does not matter. Everything other than hashrate defaults to the following if not given: w (watts): 0, kwh ($kilowatt cost/hour): 0, difficulty: current network difficulty, hc$ (hardware cost): $0, $: current bitcoin price in usd (according to Coinbase), % (pool fee): 0. The calculator does not account for nor allow for input of the increase/decrease of difficulty over time, though I may add this feature soon. Working hashing speeds: h/s, kh/s, mh/s, gh/s, th/s, ph/s.
Example usage: "/u/crypto_bot calc 30th/s 10w .12kwh hc$55 1.5%" (to make it easier to remember, th/s can also be inputted as ths). This calls the bot with a hashrate of 30 th/s, electricity usage of 10w, a cost of $.12 kWh, a hardware cost of $55, and a pool fee of 1.5%.
/u/crypto_bot number of btc <$amount to convert> [bp$bitcoin price]
Responds with the number of bitcoins you could buy with <$amount to convert>. If the comment specifies a [bp$bitcoin price], it calculates it with that exchange rate. Otherwise, it uses the rate from Coinbase.
Example usage: "/u/crypto_bot $419.29 bp$180.32" This calculates how many bitcoins you can buy if you have $419.29 and the bitcoin exchange rate is $180.32.
Broadcasting
SignMessage! "<message>"
Signs a message in the bitcoin block chain in a transaction using OP_RETURN. The message must be less than 40 characters.
Example usage: "SignMessage! "Post messages in the block chain!""
I hope you find this bot useful! Again, if you have any questions or comments, please either comment on this post, message me, or post on /r/crypto_bot.
Update 1 (June 24, 2015, 17:35): The bot now responds with information if you post a link to a block, transaction, or address on Blockchain.info in a comment, even if you don't call it. For example, if I wrote "https://blockchain.info/block/0000000000000000126448be07fb1f82af19fbbf07dd7e07ebcd08d42c2660cb" in a comment, it would respond with information about block #362,377.
Update 2 (July 10, 2015, 1:59): The bot now has two additional commands: "unconfirmed transactions" (or "unconfirmed tx") and "explain transaction delay" (or "explain tx delay"). The first command responds with the number of unconfirmed transactions, and the second explains why transactions might take extra time to confirm.
Update 3 (August 24, 2015, 1:34): The bot now responds in a better way than before when transaction ids or addresses are posted. Before, it only responded when the transaction id or address was used in a link to Blockchain.info. Now the bot will respond whenever a transaction id or address is posted at all; a link to Blockchain.info is no longer necessary.
Update 4 (August 27, 2015, 3:00): The bot can now sign messages in the Bitcoin block chain using OP_RETURN.
Subreddit
Post Details
- Posted
- 9 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/Bitcoin/com...