forked from rahuldecoded/nutrient-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
replies.py
29 lines (24 loc) · 770 Bytes
/
replies.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
import time
import random
botnick = "pikachuinuit"
master = "rahuldecoded"
def send_hi():
return random.choice(('hi', 'hey', 'hello'))
Replies = dict()
Replies ['time' ] = "Current time "+ time.strftime("%X")
Replies ['date' ] = "Current date "+ time.strftime("%x") + " and today is " + time.strftime("%a")
Replies ['goodbye' ] = "I'll miss you"
Replies ['sing' ] = "Tra la la"
Replies ['hello' ] = send_hi()
Replies ['hi' ] = send_hi()
Replies ['hey' ] = send_hi()
Replies ['master' ] = master + " is my master"
Replies ['daddy'] = master
Replies [botnick] = "What do you want?"
def find_in_Replies(word):
global Replies
if word in Replies:
return True
def reply(word):
global Replies
return Replies[word]