This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
from slackclient import SlackClient | |
Token = 'token' #You must input your token key. | |
Chan = "C0XXXXXX" #You must input your slack channel code. | |
Text = "Test" #Input your text. | |
sc = SlackClient(Token) | |
if sc.rtm_connect(): | |
while True: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var request = require("request"); | |
request('https://slack.com/api/chat.postMessage?'+ | |
'token=token&channel=C024R44D8&text='+ | |
encodeURIComponent('모닝모닝')+ | |
'&as_user=true'); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import requests | |
import json | |
import time | |
from decimal import * | |
token = 'place your Web API token here' # https://api.slack.com | |
api_url = 'https://slack.com/api/chat.postMessage' | |
data = { | |
'token': token, |