-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #46 from r-argentina-programa/feature/extract-bloc…
…k-of-code Feature: Extract block of code from submission
- Loading branch information
Showing
9 changed files
with
963 additions
and
941 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import * as dotenv from 'dotenv'; | ||
|
||
dotenv.config(); | ||
|
||
const env = { | ||
API_BASE_URL: process.env.API_URL, | ||
AUTH0_DOMAIN: process.env.AUTH0_DOMAIN, | ||
BOT_ID: process.env.BOT_ID, | ||
SLACK_TEAM_ID: process.env.SLACK_TEAM_ID, | ||
}; | ||
|
||
export default env; | ||
import * as dotenv from 'dotenv'; | ||
|
||
dotenv.config(); | ||
|
||
const env = { | ||
API_BASE_URL: process.env.API_URL, | ||
AUTH0_DOMAIN: process.env.AUTH0_DOMAIN, | ||
BOT_ID: process.env.BOT_ID, | ||
SLACK_TEAM_ID: process.env.SLACK_TEAM_ID, | ||
}; | ||
|
||
export default env; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import { App as SlackApp } from '@slack/bolt'; | ||
import subscribeToMessageEvents from './message'; | ||
import subscribeToTeamJoinEvents from './teamJoin'; | ||
import subscribeToReactionEvents from './reaction'; | ||
|
||
export const configureAppEvents = (app: SlackApp) => { | ||
subscribeToMessageEvents(app); | ||
subscribeToTeamJoinEvents(app); | ||
subscribeToReactionEvents(app); | ||
}; | ||
import { App as SlackApp } from '@slack/bolt'; | ||
import subscribeToMessageEvents from './message'; | ||
import subscribeToTeamJoinEvents from './teamJoin'; | ||
import subscribeToReactionEvents from './reaction'; | ||
|
||
export const configureAppEvents = (app: SlackApp) => { | ||
subscribeToMessageEvents(app); | ||
subscribeToTeamJoinEvents(app); | ||
subscribeToReactionEvents(app); | ||
}; |
34 changes: 17 additions & 17 deletions
34
src/events/reaction/__test__/fixture/robotFaceReactionEvent.ts
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
export const messageAuthorEvent = { | ||
type: 'reaction_added', | ||
user: 'U044WEP8EQ1', | ||
reaction: 'robot_face', | ||
item: { type: 'message', channel: 'C04T7UT7QSE', ts: '1688995701.853679' }, | ||
item_user: 'U044WEP8EQ1', | ||
event_ts: '1688995705.001400', | ||
}; | ||
|
||
export const randomUserEvent = { | ||
type: 'reaction_added', | ||
user: 'U044WEP8EQ2', | ||
reaction: 'robot_face', | ||
item: { type: 'message', channel: 'C04T7UT7QSE', ts: '1688995701.853679' }, | ||
item_user: 'U044WEP8EQ1', | ||
event_ts: '1688995705.001400', | ||
}; | ||
export const messageAuthorEvent = { | ||
type: 'reaction_added', | ||
user: 'U044WEP8EQ1', | ||
reaction: 'robot_face', | ||
item: { type: 'message', channel: 'C04T7UT7QSE', ts: '1688995701.853679' }, | ||
item_user: 'U044WEP8EQ1', | ||
event_ts: '1688995705.001400', | ||
}; | ||
|
||
export const randomUserEvent = { | ||
type: 'reaction_added', | ||
user: 'U044WEP8EQ2', | ||
reaction: 'robot_face', | ||
item: { type: 'message', channel: 'C04T7UT7QSE', ts: '1688995701.853679' }, | ||
item_user: 'U044WEP8EQ1', | ||
event_ts: '1688995705.001400', | ||
}; |
Oops, something went wrong.