Update donate and add b2x
This commit is contained in:
parent
97f0dcdcce
commit
cec92c7ed9
12
network.py
12
network.py
|
@ -62,3 +62,15 @@ def blocksize(bot, trigger):
|
|||
bot.say("Median blocksize over last 200 blocks is {0} bytes".format(size.group(1)))
|
||||
except:
|
||||
bot.say("Bomething sorked 0_0")
|
||||
|
||||
@sopel.module.commands('b2x')
|
||||
def b2x(bot, trigger):
|
||||
try:
|
||||
r=requests.get('https://blockchain.info/latestblock')
|
||||
j=r.json()
|
||||
height=j['height']
|
||||
forkheight=494784
|
||||
blocks=forkheight-int(height)
|
||||
bot.say("Bitcoin S2X fork due to happen on block {}. Current block is {}. 10 min per block estimate gives {} min, or {:.2f} hour, or {:.2f} days.".format(forkheight, height, blocks*10, blocks*0.16666, blocks*0.006944))
|
||||
except:
|
||||
bot.say("Bitcoin sucks.")
|
||||
|
|
|
@ -104,7 +104,8 @@ def ded(bot, trigger):
|
|||
|
||||
@sopel.module.commands('donate', 'donation')
|
||||
def donate(bot, trigger):
|
||||
bot.say('45SkxgDmcLmW5ByS7w9AG78JuJRvCoVKCdGJWnd4US95CBUAtvdGAdM2oHgZgTGjkEAUcwdqcryM819aqdeiKxHSQC8HkmS', trigger.nick)
|
||||
bot.say('XMR: 45SkxgDmcLmW5ByS7w9AG78JuJRvCoVKCdGJWnd4US95CBUAtvdGAdM2oHgZgTGjkEAUcwdqcryM819aqdeiKxHSQC8HkmS', trigger.nick)
|
||||
bot.say('BTC: 14X8aMUtuxH2HWLtsNAxxN7j9uqQNUdMzB', trigger.nick)
|
||||
|
||||
@sopel.module.commands('dump')
|
||||
def dump(bot, trigger):
|
||||
|
@ -530,6 +531,10 @@ def wave(bot, trigger):
|
|||
#@sopel.module.rule('[Tt]rump')
|
||||
#def politics(bot, trigger):
|
||||
# bot.reply("politics is the mind killer")
|
||||
|
||||
@sopel.module.rule('.*1Dj34exPs3S9qAV1aiGAAADzbashsSVKVP*.')
|
||||
def scamdouble(bot, trigger):
|
||||
bot.say("{} is a scammer and bitcoin is a scam".format(trigger.nick))
|
||||
|
||||
@sopel.module.commands('asp')
|
||||
def asp(bot, trigger):
|
||||
|
|
Loading…
Reference in New Issue