forked from gokomo/BotoSan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BasicTextProtocols.py
53 lines (42 loc) · 2.94 KB
/
BasicTextProtocols.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
# coding=utf-8
import random
from yowsup.layers.protocol_messages.protocolentities import TextMessageProtocolEntity
def random_roll(message):
"""
Rolls a number between 1 and 10.
:param message: A message of parent class MessageProtocol
:return: A TextMessageProtocol with the response
"""
value = random.randint(1, 10)
if value == 10:
return TextMessageProtocolEntity(u'༼ つ ಠ益ಠ༽つ [%d]' % value, to=message.getFrom())
else:
return TextMessageProtocolEntity(u'༼ つ ◕_◕ ༽つ [%d]' % value, to=message.getFrom())
def random_raza(message):
raza_list = ["Baumann", "Cantu", "Echeverry", "Garcia", "Jorge", "Guerra", "Lamadrid", "Fred", "Marchand", "Ricky",
"David",
"Esteban", "Ortiz", "Olaf", "Peña", "Memo", "Eduardo", "Victor", "Pato", "Vela"]
return TextMessageProtocolEntity(random.choice(raza_list), to=message.getFrom())
def generate_insult_string():
beban_list = ["Estufa ", "Estonia ", "Estebana ", "Esteban ", "Estufutria Lentes ", "BebAnus ", "EstebAnus"]
es_list = ["es ", "es un ", "sera ", "siempre lo fue ", "sueña con ser ", "aspira ser ", "es una ", "prefiere ser ",
"ama ser ", " ", " ", " "]
adj_list = ["popo", "pipi", "caca", "exremento", "rata cochina", "traidor", "nutria", "gata", "baguette",
"faguette", "nini", "huele a vaca", "el peor abogado de el mundo", "el mas inutil de todos", "chino",
"zorra", "gordo ", "gorda ", "cuatrojos ", "inutil ", "tonto ", "tonta ", "basofia", "basura", "puto",
"puta", "Pato", "Patricio", "Pato con Lentes", "vagina", "pitos", "traga pitos", "perro",
"perra de Baumann", "perra de Cantu", "perra de Echeverry", "perra de mau Garcia", "perra de Jorge",
"perra de Guerra", "perra de Rana", "perra de AlFredrick", "perra de Marchand", "perra de Ricky",
"perra de David", "perra de Ortiz", "perra de Olaf", "perra de Peña", "perra de Memo",
"perra de Eduardo", "perra de Victor", "perra de Pato", "perra de Vela"]
insult_sentence = " つ ಠ益ಠ༽つ " + random.choice(beban_list) + random.choice(es_list) + random.choice(adj_list)
return insult_sentence
def random_estaban(message):
return TextMessageProtocolEntity(generate_insult_string(), to=message.getFrom())
def generate_eightball(message):
response_list = ["It is decidedly so", "Without a doubt", "Yes definitely", "You may rely on it",
"As I see it, yes", "Most likely", "Outlook good", "Yes", "Signs point to yes",
"Reply hazy try again", "Ask again later", "Better not tell you now", "Cannot predict now",
"Concentrate and ask again", "Don't count on it", "My reply is no", "My sources say no",
"Outlook not so good", "Very doubtful"]
return TextMessageProtocolEntity(random.choice(response_list), to=message.getFrom())