Skip to content

Commit

Permalink
✨ feat: add 'report' message
Browse files Browse the repository at this point in the history
  • Loading branch information
synoti21 committed Jan 29, 2024
1 parent 8a7051a commit 89daa39
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/commands/report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {Message} from "discord.js";

export async function execute(message: Message) {
try{
message.channel.send("버그나 개선사항들을 자유롭게 입력해주세요. 모든 의견은 익명으로 개발자에게 전달됩니다.")
message.channel.send("버그나 개선사항들을 자유롭게 입력해주세요. 모든 의견은 익명으로 개발자에게 전달됩니다.\n명령을 취소하시려면 '취소'를 입력해주세요.")
const botFilter = (m: { author: { bot: any; id: string; }; content: string; }) => !m.author.bot && m.author.id === message.author.id && !m.content.startsWith('!');
const responseCollector = message.channel.createMessageCollector({filter: botFilter, max: 1, time: 20000});

Expand Down
3 changes: 1 addition & 2 deletions src/model/problem_class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ export class BojProblem{
},
{name: '링크', value: `https://www.acmicpc.net/problem/${this.problemId}`, inline: false}
)
.setTimestamp()
.setFooter({text: 'Baekjoon Bot', iconURL: 'https://avatars.githubusercontent.com/u/139442196?s=200&v=4'})
.setFooter({text: 'Baekjoon Bot. 버그가 발생한 경우 !report로 제보해주세요.', iconURL: 'https://avatars.githubusercontent.com/u/139442196?s=200&v=4'})
}catch (error){
logger.error(error)
return getProblemErrorMsg();
Expand Down

0 comments on commit 89daa39

Please sign in to comment.