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

[任務] /translate command #146

Open
allenh opened this issue Jun 23, 2023 · 0 comments
Open

[任務] /translate command #146

allenh opened this issue Jun 23, 2023 · 0 comments

Comments

@allenh
Copy link

allenh commented Jun 23, 2023

Slash Command Quest

任務描述

Implement a new command /translate that takes in two parameters:

The output will be a message visible to everyone in the channel that starts with tagging the author, followed by the translated message and the original message.
For example:

From: @ user_name
> translated message
{{ translated_message }}

> original message
{{ input_message }}

Slash Command 資訊

  1. command name: /translate
  2. command arguments: message, targetLanguage
  3. command description: translate message from input to the target language targetLanguage

測試步驟

Success case

  1. In any text channel type: /translate message: input_message targetLanguage: zh
  2. the bot returns:
From: @ allen
> translated message
{{ translated_message in Chinese }}

> original message
{{ input_message }}

Failing case

  • missing any required input

注意事項

  • it should use ChatGPT
  • author should be a mention
  • Should allow message reply
  • investigate if it's possible to allow multiline input for message
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant