Skip to content

Instantly share code, notes, and snippets.

View Jack-Valentine's full-sized avatar

Jack Valentine Jack-Valentine

  • Jack's Archive
  • Sydney, Australia
View GitHub Profile
@Jack-Valentine
Jack-Valentine / RunMorning.py
Last active January 5, 2016 06:16
Send to "Morning Mornig" message in your slack channel.
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:
var request = require("request");
request('https://slack.com/api/chat.postMessage?'+
'token=token&channel=C024R44D8&text='+
encodeURIComponent('모닝모닝')+
'&as_user=true');
@BlizzardBlue
BlizzardBlue / WeirdMorning.py
Last active April 26, 2016 07:01
Shouts out "모닝모닝" at the speed of light.
# -*- 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,