Skip to content

Commit c5eba9d

Browse files
Dhiraj240satwikkansal
authored andcommitted
Modified Script
1 parent 7657fd1 commit c5eba9d

File tree

1 file changed

+22
-6
lines changed

1 file changed

+22
-6
lines changed

slackbot/army_brat.py

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,15 @@
88

99
# constants
1010
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/"
1420

1521
# instantiate Slack & Twilio clients
1622
slack_client = SlackClient(os.environ.get('SLACK_BOT_TOKEN'))
@@ -22,9 +28,19 @@ def handle_command(command, channel):
2228
are valid commands. If so, then acts on the commands. If not,
2329
returns back what it needs for clarification.
2430
"""
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+
2844
if command.startswith("create issue"):
2945
response = "Sure..Head on to" + "\n" + ISSUE_COMMAND
3046

0 commit comments

Comments
 (0)