Skip to content

Conversation

@warmwhiten
Copy link
Member

@warmwhiten warmwhiten commented Aug 20, 2021

ISSUE

#1 디스코드 데일리 스크럼 봇을 생성한다

Description

  • 디스코드 데일리 스크럼 봇을 생성했습니다.
  • AWS lambda, EventBridge를 이용하여 매일 오전 9시 디스코드 #데일리스크럼 채널에 스크럼 메시지를 보냅니다.
  • 스크럼 메시지 예시

image

@warmwhiten warmwhiten added the enhancement New feature or request label Aug 20, 2021
@warmwhiten warmwhiten requested review from GyuhoLee and Kang-bh August 20, 2021 15:57
@warmwhiten warmwhiten self-assigned this Aug 20, 2021
exports.handler = async (event) => {

try {
const result = await axios.post("https://discord.com/api/webhooks/878293255857524826/pN3oIaw_rzUpPzJuaXui8nbwPH_YTfQyckHjjZOttU9S0JGZYrkX9u86giNEojIn0S9g", {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

웹 훅 url이 공개되었네요 !!! 이런상황 매우 위험 ...... 수정해야겠따

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

새로운 웹 훅을 만들어서 요거는 이제 유효하지 않아 놔두겠습니다!
이런 상황에는 dotenv라는 걸 사용하면 됩니다

@warmwhiten
Copy link
Member Author

혹시 어떻게 만드는지 궁금하다면 ~~~ ! 매우 간단하지만 스몰 세션을 열 수도 있습니당. 필요하다면 요청해주세용~!

@GyuhoLee
Copy link
Member

GyuhoLee commented Aug 20, 2021

혹시 어떻게 만드는지 궁금하다면 ~~~ ! 매우 간단하지만 스몰 세션을 열 수도 있습니당. 필요하다면 요청해주세용~!

당장해주세요~~

Copy link
Member

@GyuhoLee GyuhoLee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

훌륭합니다

Comment on lines +17 to +21
// TODO implement
const response = {
statusCode: 200,
body: JSON.stringify('daily scrum message from Lambda!'),
};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO implement는 생략하고,
try catch를 통해 error를 잡았는데 응답코드는 항상 200이 되는게 아닌가 싶어요

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

오호 ~~ 반영해서 수정하도록 하겠습니당. 리뷰감사합니다~~!

@warmwhiten warmwhiten linked an issue Aug 22, 2021 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

#001 디스코드 데일리 스크럼 봇을 생성한다

3 participants