Skip to content

Commit

Permalink
Merge pull request #969 from tsg-ut/qrcode-quiz-fix
Browse files Browse the repository at this point in the history
qrcode-quiz: Fix markup of quiz message
  • Loading branch information
hakatashi authored Dec 2, 2024
2 parents 1b80989 + 279b776 commit 326a1d9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions qrcode-quiz/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ export default (slackClients: SlackInterface) => {
});

const standardRuleUrl = 'https://scrapbox.io/tsg/QR%E5%BD%93%E3%81%A6%E3%82%AF%E3%82%A4%E3%82%BA%2F%E6%A8%99%E6%BA%96%E3%83%AB%E3%83%BC%E3%83%AB';
const quizText = `このQRコード、なんと書いてあるでしょう? (difficulty = ${quizOptions.difficulty}, mode = ${quizOptions.mode}, masked = ${!quizOptions.isUnmasked}) <${standardRuleUrl}|標準ルール>`;
const quizText = `このQRコード、なんと書いてあるでしょう? (difficulty = ${quizOptions.difficulty}, mode = ${quizOptions.mode}, masked = ${!quizOptions.isUnmasked}) <${standardRuleUrl}|[標準ルール]>`;

const ateQuiz = new QrAteQuiz(slackClients, {
problemMessage: {
Expand All @@ -407,7 +407,7 @@ export default (slackClients: SlackInterface) => {
{
type: 'section',
text: {
type: 'plain_text',
type: 'mrkdwn',
text: quizText,
},
accessory: {
Expand All @@ -417,6 +417,8 @@ export default (slackClients: SlackInterface) => {
},
},
],
unfurl_links: false,
unfurl_media: false,
},
hintMessages: [],
immediateMessage: {
Expand Down

0 comments on commit 326a1d9

Please sign in to comment.