-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtrollings.py
47 lines (39 loc) · 839 Bytes
/
trollings.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
# -*- coding: utf-8 -*-
#
# TELEGRAM BOT
#
# Name: Nova
# Username: Nova_X1_Bot
#
# - Description:
# Module to handle responses to particular users.
#
# By Jose Acevedo
# Copyright 2016.
import random
messages = {}
# @pablod_bc
messages["pablod_bc"] = [
"Niggah.",
"What's up my nigger?",
"Shut up.",
"...",
"Calling the police...",
"That's my niggah!",
"I'm not answering you."
]
# Genesis Kuffaty
messages["Genesis_Kuffaty"] = [
"Who's the beta?",
"Who is the B?"
]
def handleTrollings(msg, chatID, bot):
text = ""
if msg["from"]["username"] == "pablod_bc":
if random.randint(1,5) == 1:
text = random.choice(messages["pablod_bc"])
elif msg["from"]["first_name"] == "Genesis":
if random.randint(1,5) == 1:
text = random.choice(messages["Genesis_Kuffaty"])
if text != "":
bot.sendMessage(chatID, text)