Instantly share code, notes, and snippets.

Embed
What would you like to do?
Mass Memo Sender By @CADawg
[warnings]
filter = ignore
[steem]
nodes = https://api.steemit.com
[account]
name = [Steemit Username]
posting = [Steemit Posting Key]
active = [Steemit Active Key]
[accounts]
names = cadawg,mermaidvampire
[transaction]
amount = 0.001
currency = SBD
[posts]
memo = [MEMO]
transactions_each = 1
# Licence: https://www.gnu.org/licenses/gpl-3.0.en.html
# Copyright Conor Howland (@cadawg) 2018
from steem import Steem
import warnings
import configparser
import math
configParse = configparser.RawConfigParser()
configFile = "MassSend.config"
configParse.read(configFile)
warnfilter = configParse.get('warnings','filter')
cfg_posting = configParse.get('account','posting')
cfg_active = configParse.get('account','active')
cfg_nodes = configParse.get('steem','nodes').split(",")
with warnings.catch_warnings():
warnings.simplefilter(warnfilter)
s = Steem(nodes=cfg_nodes,keys=[cfg_posting,cfg_active])
bot_to = configParse.get('accounts','names').split(",")
amount_send = float(configParse.get('transaction','amount'))
my_account = configParse.get('account','name')
assetsend = configParse.get('transaction','currency')
promote = configParse.get('posts','memo')
qty_upv = int(configParse.get('posts','transactions_each'))
plen = len(bot_to)
global i
for i in range(0,plen*qty_upv):
index = int(math.floor(i/qty_upv))
voteNumber = int(math.floor(i/((2*index)+1)))+1
post_promote = promote
try:
s.commit.transfer(to=bot_to[index], amount=amount_send, asset=assetsend, account=my_account, memo=post_promote)
except:
print("Error Sending Transaction Number: " + post_promote + "/" + str(voteNumber) + ", Attempting Re-Send!")
else:
print("Sent Transaction Number: " + post_promote + " || To: " + bot_to[index] + " || Number:" + str(voteNumber) + ", it's super effective!")
print("Done!")
@Snaddyvitch-Dispenser

This comment has been minimized.

Owner

Snaddyvitch-Dispenser commented Mar 30, 2018

Welcome to my code, If it doesn't work, just go to the revisions tab and go back ~2 revisions!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment