Compare commits

...

2 commits

Author SHA1 Message Date
69596e37fe warn that posts are made by a bot 2019-09-21 22:43:02 +10:00
e9b8d97a62 remove unecessary duplication 2019-09-21 22:42:40 +10:00

30
post.py
View file

@ -24,25 +24,19 @@ except:
meta = json.load(open('meta.json', 'r')) meta = json.load(open('meta.json', 'r'))
takes = json.load(open('takes.json')) takes = json.load(open('takes.json'))
take = random.choice(takes['templates']).format( args = {
ideology = random.choice(takes['ideologies']), 'ideology': random.choice(takes['ideologies']),
ideology2 = random.choice(takes['ideologies']), 'ideology2': random.choice(takes['ideologies']),
thing = random.choice(takes['things']), 'thing': random.choice(takes['things']),
thing2 = random.choice(takes['things']), 'thing2': random.choice(takes['things']),
thing3 = random.choice(takes['things']), 'thing3': random.choice(takes['things']),
site = random.choice(takes['sites']), 'site': random.choice(takes['sites']),
ideolog = random.choice([i[:-1] + "t" for i in takes['ideologies'] if i.endswith("ism")]) 'ideolog': random.choice([i[:-1] + "t" for i in takes['ideologies'] if i.endswith("ism")])
) }
cw = random.choice(takes['content warnings']).format( take = random.choice(takes['templates']).format(**args)
ideology = random.choice(takes['ideologies']),
ideology2 = random.choice(takes['ideologies']), cw = random.choice("[BOT POST] " + takes['content warnings']).format(**args)
thing = random.choice(takes['things']),
thing2 = random.choice(takes['things']),
thing3 = random.choice(takes['things']),
site = random.choice(takes['sites']),
ideolog = random.choice([i[:-1] + "t" for i in takes['ideologies'] if i.endswith("ism")])
)
print(take) print(take)