-
Notifications
You must be signed in to change notification settings - Fork 3
/
fakeposter.py
96 lines (90 loc) · 2.95 KB
/
fakeposter.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
import random
import asyncio
import motor.motor_asyncio
from livechanapi import post
import config
col = motor.motor_asyncio.AsyncIOMotorClient().livechan_db.chat_dbs
async def fake_mirri(data):
if random.randint(0, 10) != 1 or data['convo'] != 'General':
return
body = ">>{}\n{}".format(data['count'], random.choice(['k', 'yeah)', 'bad=good', "k=yeah)", "good=bad", "hello"]))
await asyncio.sleep(random.random() * 15)
await post(body, 'Mirri', data['convo'], country='FI-15')
async def fake_post(data):
friendly_replies = [
'kys',
'this. so much this.',
'oh god',
'creepy incel basterd',
'tnx',
'me',
'why worry',
'idk',
'soon',
'so what?',
'really?',
'yes. why?',
'cute',
'all me',
'bot',
'thanks',
'no u',
'no me',
'cuck',
'Patryk Adamczyk insults Ukrainians and disabled people for no reason',
"I'm disabled",
'its dont',
'well',
'hot',
'hi',
'you are a good kind of kot',
'this',
'wow',
'I posted this',
]
friendly_stickers = [
'[st]apu-1479727845001[/st]',
'[st]apu-1479764034003[/st]',
'[st]apu-1479755144003[/st]',
'[st]kot-wageslave[/st]',
'[st]apu-1479763892003[/st]',
'[st]apu-1479729971002[/st]',
'[st]apu-1479764034003[/st]',
]
friendly_posters = [
('AR-07', 'ARKot', ''),
('GB', 'Anse/Egor', 'opinion'),
('RU-48', 'Egor/Anse', 'lopinion'),
('HU-05', 'GNU/Macska', ''),
('PL-77', '', 'secretworry'),
('RU-66', 'Tomsk', ''),
('RU-71', '', 'ekb'),
('NL-05', 'whiskey-drinking piano-playing nigger', ''),
('ES-32', 'Gato', ''),
('UA-12', 'yaro', ''),
('RS-00', 'spinosaurus', 'croc'),
('IT-09', u'(= ゜ω ゜ )~♥', 'lombard'),
('US-IN', 'corn', ''),
('PL-78', u'Agata to słodziak', 'wojak'),
('RU-47', 'true muscovy', ''),
('DK', 'Visigoth', ''),
]
out_message = ''
if random.randint(1, 50) == 13:
topost = random.choice(['sticker', 'post', 'reply'])
if topost == 'post':
cursor = col.find({})
docs = await col.to_list(None)
while not out_message:
out_message = random.choice(docs)['body']
out_message = '\n'.join(line for line in out_message.splitlines() if not line.startswith('>'))
elif topost == 'sticker':
out_message = random.choice(friendly_stickers)
else:
out_message = random.choice(friendly_replies)
body = u'>>{}\n{}'.format(data['count'], out_message)
country, name, trip = random.choice(friendly_posters)
if trip:
name = '{}#{}'.format(name, trip)
await asyncio.sleep(random.random()*15)
await post(body, name, data['convo'], '', '', country)