File tree 2 files changed +38
-0
lines changed
2 files changed +38
-0
lines changed Original file line number Diff line number Diff line change
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"
Original file line number Diff line number Diff line change
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"
You can’t perform that action at this time.
0 commit comments