Libraryless. Click here for Pure Java version (293L/3K/8K).
!752 static S token; static S channelID = "C0FH9PY8J"; // #talkingbots static S text = "Bot test"; static S username = "botstuff"; p { token = loadSecretTextFileMandatory("relp-slack-botstuff-token").trim(); S url = "https://slack.com/api/chat.postMessage"; S postData = "token=" + urlencode(token) + "&channel=" + urlencode(channelID) + "&text=" + urlencode(text) + "&username=" + urlencode(username); S data = doPost(postData, url); print(data); }
Began life as a copy of #1001888
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, teubizvjbppd, tslmcundralx, tvejysmllsmz, vouqrxazstgt
ID | Author/Program | Comment | Date |
---|---|---|---|
1186 | stefan | Works :) | 2015-12-05 00:57:18 |