-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbe_happy.py
52 lines (45 loc) · 2.22 KB
/
be_happy.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
import simplebot
import re
import random
import time
@simplebot.filter
def beHappy(message, replies):
"""BeHappy: Don't worry be happy!
Sends random things that make you happy. Triggered by sad smileys"""
if not message.is_text():
return
exp = r"(?![😀😄☺️😁🙂])[😑😐😒😔😕😟🙁☹️😢😥😰😭😢]|(?<!\w)[:;]-?[\(/]\/?"
random.seed(time.time())
if re.search(exp, message.text) != None :
rand = random.randrange(1,6)
if rand == 1:
sendPussy(message, replies)
elif rand == 2:
sendGeileSau(message, replies)
elif rand == 3:
sendSong(message, replies)
elif rand >= 4:
sendCables(message, replies)
def sendSong(message, replies):
random.seed(time.localtime().tm_sec)
rand = random.randrange(1,4)
songs = {
1: "Listen to this: https://www.youtube.com/watch?v=d-diB65scQU", #Bobby McFerrin
2: "Ooh Eeh Ooh Ah Aaahh\nhttps://www.youtube.com/watch?v=cmjrTcYMqBM", # Davis Seville
3: "Other people even want to fuck dogs... Or pirates xD https://www.youtube.com/watch?v=Z7n7WRidwYo", # Blink 182
4: "Check this funny video out meeen: https://www.youtube.com/watch?v=IwLSrNu1ppI" # Soulpride (J-Cut & Kolt Siewerts)
}
reply = "Not so mad, {}!\n{}".format(message.get_sender_contact().name, songs.get(rand))
replies.add(text=reply, quote=message)
def sendCables(message, replies):
random.seed(time.localtime().tm_sec)
reply = "Hey {}, here are some sexy cables to cheer you up :)".format(message.get_sender_contact().name)
rand = random.randrange(0,8)
fileName = "images/cables{}.jpg".format(rand)
replies.add(text=reply, filename=fileName, quote=message)
def sendPussy(message, replies):
reply = "Don't be sad, {}!\nHere is a cute chick with a hairy pussy to brighten you up :)".format(message.get_sender_contact().name)
replies.add(text=reply, filename="images/pussy.png", quote=message)
def sendGeileSau(message, replies):
reply = "{}! Nicht böse sein!\nUm dich aufzuheitern hab ich hier eine geile Sau in Lackstiefeln für dich ^.^".format(message.get_sender_contact().name)
replies.add(text=reply, filename="images/geilesau.jpg", quote=message)