Skip to content

Instantly share code, notes, and snippets.

View Roach's full-sized avatar
:octocat:
🤷🏻‍♂️

Roach Roach

:octocat:
🤷🏻‍♂️
View GitHub Profile
/**
*
* Sends a message to a channel.
* @param username Set your bot's user name. Must be used in conjunction with `as_user` set to false, otherwise ignored. See [authorship](#authorship) below.
* @param threadTs Provide another message's `ts` value to make this message a reply. Avoid using a reply's `ts` value; use its parent instead.
* @param attachments Structured message attachments.
* @param unfurlLinks Pass true to enable unfurling of primarily text-based content.
* @param text Text of the message to send. See below for an explanation of [formatting](#formatting). This field is usually required, unless you're providing only `attachments` instead.
* @param unfurlMedia Pass false to disable unfurling of media content.
* @param parse Change how messages are treated. Defaults to `none`. See [below](#formatting).
@Roach
Roach / link-buttons.py
Created December 8, 2017 18:01
Slack Link Buttons and Deep Links Example
import json
from twitter import *
# Twitter app credentials
token = "..."
token_secret = "..."
consumer_key = "..."
consumer_secret = "..."
# Twitter client
@Roach
Roach / fetch-verified-emails.py
Created January 26, 2022 00:57
Fetch GitHub org members with role and verified domain email
import csv
import os
import requests
import sys
# Verify the org name variable has been passed
sys_args = sys.argv
if len(sys_args)==1:
print("Please provide the GitHub org name")
print("{} <github-org>".format(sys_args[0]))