Components
Code for a discord bot to filter dropped posts and accept them if the author has voted other posts.
Proposal
var = json.load(open("temp.txt"))
i = 0
voin = 0
vote = {}
recject=0
voted = ''
a =[]
for url in var:
i =i+1
if i < max_p:
p = Post(url)
#print(p.identifier)
for vote in p.active_votes:
if dropper == vote['voter']:
voin = voin + 1
voted = voted + p.identifier + '\n'
a.append(vote['voter'])
Mockups / Examples
from there code can be implemented to selectiveliy delete unless voin is bigger than x
Benefits
Cleaner discord servers.
Posted on Utopian.io - Rewarding Open Source Contributors