There was an error while loading. Please reload this page.
1 parent d159bc7 commit b9c5602Copy full SHA for b9c5602
0.1 SlackBot/slackbot.py
@@ -124,3 +124,20 @@ def add_member(user_id, member_id):
124
# print (f"Successfully added to the channel {channel}")
125
# elif add['ok'] == False :
126
# print(f"Already in {channel}")
127
+
128
129
130
+#3. Handling Slash Commands
131
+ #use slash commands
132
+# @app.route('/slash',methods=["GET","POST"])
133
+# def slash():
134
+# #sents all the dictionary key val pair
135
+# if request.method == "POST" :
136
+# data = request.form
137
+# user_id = data.get('user_id')
138
+# channel_id = data.get('channel_id')
139
+# #client.chat_postmessage(channel=channel_id,text="I got the command")
140
+# return Response(),200
141
+# return ("Simple get request")
142
143
0 commit comments