Google Apps Script interface for Slack API
Add This Library from Google Apps Script.(Libraries are in Resources tab)
MCPiGxYANiZlb7LnYOqREqeJzI9uQ3ses
var token = PropertiesService.getScriptProperties().getProperty('SLACK_ACCESS_TOKEN');
var slack = GASlacker.methods(token);
function doPost(e){
var event = JSON.parse(e.postData.contents).event;
if(event.text.match(/hello/)){
var text = "Hello," + event.message.username;
slack.chat.postMessage(event.channel, text);
}
}
-
https://github.com/os/slacker
Python Interface (GASlacker interface imitated this.) -
https://github.com/soundTricker/SlackApp
GAS Library for same purpose in CoffeeScript (not updated) -
https://github.com/howdy39/gas-clasp-starter
Starter to develop GAS with git
This software is released under the MIT License, see LICENSE.txt.