-
Notifications
You must be signed in to change notification settings - Fork 0
#001 디스코드 데일리 스크럼 봇을 생성한다 #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
src/dailyScrum.js
Outdated
| exports.handler = async (event) => { | ||
|
|
||
| try { | ||
| const result = await axios.post("https://discord.com/api/webhooks/878293255857524826/pN3oIaw_rzUpPzJuaXui8nbwPH_YTfQyckHjjZOttU9S0JGZYrkX9u86giNEojIn0S9g", { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
웹 훅 url이 공개되었네요 !!! 이런상황 매우 위험 ...... 수정해야겠따
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
새로운 웹 훅을 만들어서 요거는 이제 유효하지 않아 놔두겠습니다!
이런 상황에는 dotenv라는 걸 사용하면 됩니다
|
혹시 어떻게 만드는지 궁금하다면 ~~~ ! 매우 간단하지만 스몰 세션을 열 수도 있습니당. 필요하다면 요청해주세용~! |
당장해주세요~~ |
GyuhoLee
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
훌륭합니다
| // TODO implement | ||
| const response = { | ||
| statusCode: 200, | ||
| body: JSON.stringify('daily scrum message from Lambda!'), | ||
| }; |
There was a problem hiding this comment.
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이 되는게 아닌가 싶어요
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
오호 ~~ 반영해서 수정하도록 하겠습니당. 리뷰감사합니다~~!
ISSUE
#1 디스코드 데일리 스크럼 봇을 생성한다
Description
#데일리스크럼채널에 스크럼 메시지를 보냅니다.https://www.youtube.com/watch?v=i31QsZro6s0&lc=UgxjTnUXiFfIpHsJHZF4AaABAg.9IZ-Y0ZzcY09IZHBpE3Mc4
https://daje0601.tistory.com/73