Skip to content

Commit b38d08e

Browse files
committed
Initial Commit
0 parents  commit b38d08e

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

Goodbye.py

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
class Goodbye():
2+
3+
def getName(self):
4+
return 'Goodbye'
5+
6+
def onEnable(self, parser):
7+
print "Loaded Goodbye Plugin"
8+
9+
def handleRequirements(self, input):
10+
response = 0
11+
if (input.find("bye") != -1 or input.find("goodbye") != -1):
12+
response += 20
13+
return response
14+
15+
def generateResponse(self, input):
16+
return {"response":"goodbye"}
17+
18+
def onDisable(self):
19+
print "Disabling Goodbye"

Hello.py

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
class Hello():
2+
3+
def getName(self):
4+
return 'Hello'
5+
6+
def onEnable(self, parser):
7+
print "Loaded Hello Plugin"
8+
9+
def handleRequirements(self, input):
10+
response = 0
11+
if (input.find("hi") != -1 or input.find("hello") != -1):
12+
response += 20
13+
return response
14+
15+
def generateResponse(self, input):
16+
return {"response":"hello"}
17+
18+
def onDisable(self):
19+
print "Disabling Hello"

0 commit comments

Comments
 (0)