-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfb_chatdata.py
53 lines (36 loc) · 1.74 KB
/
fb_chatdata.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
class FacebookChatData():
def __init__(self):
#(?:^|\W)die(?:$|\W)
word = lambda x : r'(?:^|\W)'+x+r'(?:$|\W)'
self.psychobabble = [
[word('die'),
["YOUR LIFE IS IMPORTANT. PLEASE TALK TO A FRIEND OR SOMEONE ABOUT THIS OR VISIT THIS SITE (https://suicidepreventionlifeline.org/). I AM A BOT AND I CAN'T HELP YOU."]],
[word('kill'),
["LIFE IS IMPORTANT. PLEASE TALK TO A FRIEND OR SOMEONE ABOUT THIS OR VISIT THIS SITE (https://suicidepreventionlifeline.org/). I AM A BOT AND I CAN'T HELP YOU."]],
[word('sucide'),
["YOUR LIFE IS IMPORTANT. PLEASE TALK TO A FRIEND OR SOMEONE ABOUT THIS OR VISIT THIS SITE (https://suicidepreventionlifeline.org/). I AM A BOT AND I CAN'T HELP YOU."]],
[r'what is your name',
["My name is Liev the ChatBot."]],
[r'what are you',
["I am a Chat Bot"]],
[r'hi',
["Hi, How might I help you today."]],
[r'hello',
["Hello, How are you doing today."]],
[r'good morning',
["Good Morning to you too. I hope we can chat today"]],
[r'goodbye',
["Thank you for the lovely chat. Goodbye"]],
[r'bye',
["Thank you for the lovely chat. Goodbye"]],
[r'(.*) who are you (.*)',
["I am the live chat bot. Talk to me."]],
[r'(.*) who are you (.*)',
["I am the live chat bot. Talk to me."]],
[r'(.*) do you like (.*)',
["I like talking to you."]],
[r'(.*) what are you (.*)',
["I am the live chat bot. Talk to me."]],
[r'(.*)',
["Follow the white rabbit."]]
]