8
8
9
9
# constants
10
10
AT_BOT = "<@" + BOT_ID + ">"
11
- MAIN_COMMAND = "https://wtfpython-web-invite.herokuapp.com/"
12
- ISSUE_COMMAND = "https://github.com/wtfpython-web/wtfpython-web/issues/new"
13
- ASSIGN_COMMAND = "https://girlscriptgssoc.slack.com/messages/DBE359223/"
11
+ MAIN_COMMAND = "https://github.com/Dhiraj240/wtfpython-web/blob/development/slackbot/Guidelines.md"
12
+ INVITE_COMMAND = "https://wtfpython-web-invite.herokuapp.com/"
13
+ CONTRI_COMMAND = "https://github.com/wtfpython-web/wtfpython-web/wiki/Workflow"
14
+ CAKE_COMMAND = "https://github.com/wtfpython-web/wtfpython-web/labels/difficulty%2Fcakewalk"
15
+ PRO_COMMAND = "https://github.com/wtfpython-web/wtfpython-web/labels/difficulty%2Fpro"
16
+ INTR_COMMAND = "https://github.com/wtfpython-web/wtfpython-web/labels/difficulty%2Fintermediate"
17
+ TOP_COMMAND = "https://github.com/wtfpython-web/wtfpython-web/labels/difficulty%2Ftopcoder"
18
+ ISSUE_COMMAND = "https://github.com/wtfpython-web/wtfpython-web/issues/new"
19
+ ASSIGN_COMMAND = "https://girlscriptgssoc.slack.com/messages/DBE359223/"
14
20
15
21
# instantiate Slack & Twilio clients
16
22
slack_client = SlackClient (os .environ .get ('SLACK_BOT_TOKEN' ))
@@ -22,9 +28,19 @@ def handle_command(command, channel):
22
28
are valid commands. If so, then acts on the commands. If not,
23
29
returns back what it needs for clarification.
24
30
"""
25
- response = "If you want to contribute follow this link" + MAIN_COMMAND + \
26
- " and get an invitation to our organisation using your github handle."
27
-
31
+ response = "Please read this carefully" + "\n " + MAIN_COMMAND
32
+
33
+ if command .startswith ("invite me" ):
34
+ response = "If you want to contribute follow this link" + "\n " + INVITE_COMMAND + "\n " + \
35
+ " and get an invitation to our organisation using your github handle."
36
+
37
+ if command .startswith ("guide me" ):
38
+ response = "Read our Contributing guidelines" + "\n " + CONTRI_COMMAND
39
+
40
+ if command .startswith ("issues available" ):
41
+ response = "Newcomers Look at these issues" + "\n " + "Cake Walk Issues:" + CAKE_COMMAND + "\n " + "PRO Issues:" + PRO_COMMAND + "\n " + \
42
+ "Medium Issues:" + INTR_COMMAND + "\n " + "Else feel the heat " + "\n " + "TOPCODER Issues:" + TOP_COMMAND
43
+
28
44
if command .startswith ("create issue" ):
29
45
response = "Sure..Head on to" + "\n " + ISSUE_COMMAND
30
46
0 commit comments