Skip to content
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

character-quiz: 絵の中に2人いる場合の名前が上手く表示されない #825

Closed
settyan117 opened this issue May 1, 2023 · 3 comments

Comments

@settyan117
Copy link
Contributor

元データでは「hoge&fuga」という形式になっており、以前はこれがそのまま表示されていたが、1人目しか表示されなくなっていた
おそらくatequizで再実装したときにバグらせた(ずび)

@settyan117
Copy link
Contributor Author

https://github.com/tsg-ut/slackbot/blob/master/character-quiz/index.ts#L81-L82 において、&でsplitしてしまってるのがよくないね
&でsplitするのは解答判定用のみにして、characterNameには&でsplitする前の最初の文字列を入れるとよさそう

@settyan117
Copy link
Contributor Author

settyan117 commented May 1, 2023

深刻なバグではない(解答判定的には&でもsplitすることは正しいので、判定はバグっていない)ので、gitとかslackbot開発の練習してみたい人向けに残しておきます

@settyan117
Copy link
Contributor Author

これたぶん #892 で解決しちゃったので閉じます(この Issue の存在を忘れてた)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant