This file contains 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 datetime | |
from slack_sdk import WebClient | |
"""Get the SLACK_API_TOKEN: | |
1. To get a token for this script, create an app at https://api.slack.com/apps (Choose 'From scratch') | |
2. Go to 'OAuth & Permissions' > 'Scopes' section > 'User Token Scopes' > Add these permissions: | |
# admin.conversations:write | |
# admin.conversations:read | |
# channels:read | |
# channels:history |
This file contains 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 os | |
import math | |
import time | |
import random | |
import numpy as np | |
import pandas as pd | |
import torch | |
import torch.nn as nn |