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
| from slack_sdk import WebClient | |
| from datetime import datetime, timedelta, timezone | |
| # from IPython.display import clear_output | |
| import time, pytz, re | |
| USER_TOKEN = "xoxp-....." # Enter your user token here | |
| PERIOD_AGO = 1 # How many hours/minutes/seconds 'ago' do you want to delete? | |
| CHANNEL_NAME = 'upwork-jobs' # Change this to your channel name | |
| SLEEP_TIME = 5 # Set this up with any number you wish, to prevent API throttling |
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
| /* Create A Reducer | |
| * | |
| * You need to create a reducer called "appReducer" that accepts two arguments: | |
| * - First, an array containing information about ice cream | |
| * - Second, an object with a 'DELETE_FLAVOR' `type` key | |
| * (i.e., the object contains information to delete the flavor from the state) | |
| * | |
| * The action your reducer will receive will look like this: | |
| * { type: 'DELETE_FLAVOR', flavor: 'Vanilla' } | |
| * |
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
| /* Create A Reducer | |
| * | |
| * You need to create a reducer called "appReducer" that accepts two arguments: | |
| * - First, an array containing information about ice cream | |
| * - Second, an object with a 'DELETE_FLAVOR' `type` key | |
| * (i.e., the object contains information to delete the flavor from the state) | |
| * | |
| * The action your reducer will receive will look like this: | |
| * { type: 'DELETE_FLAVOR', flavor: 'Vanilla' } | |
| * |