Skip to content
This repository has been archived by the owner on Oct 17, 2024. It is now read-only.

/random_num コマンドに振るサイコロの数を指定可能に (#37) #55

Merged
merged 7 commits into from
Mar 4, 2024

Conversation

takejohn
Copy link
Member

@takejohn takejohn commented Mar 3, 2024

内容

/random_num コマンドでダイスの数を指定できるようにしました。

変更点

  • 関数の引数でオプションの値を得ることができるように SimpleCommand, SimpleSlashCommandBuilder を作成
  • /random_num で SimpleCommand, SimpleSlashCommandBuilder を使用
  • /random_num に dice_count オプションを追加
  • 乱数の範囲に max_value を含むようにして、max_value のデフォルト値を99に変更
  • 最小値 ≦ 最大値であることを確認

チェックリスト:

  • このリポジトリのコードスタイルに沿っているか
  • 自分自身で動作確認を行ったか、また、それは正常に動作したか

@takejohn takejohn marked this pull request as ready for review March 3, 2024 16:51
@takejohn
Copy link
Member Author

takejohn commented Mar 3, 2024

Ready for review

@takejohn takejohn changed the title [ドラフト] /random_num コマンドに振るサイコロの数を指定可能に (#37) /random_num コマンドに振るサイコロの数を指定可能に (#37) Mar 4, 2024
@takejohn
Copy link
Member Author

takejohn commented Mar 4, 2024

This will close #37

Copy link
Member

@ringo360 ringo360 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I checked ✔️

@ringo360 ringo360 merged commit e9a3041 into TeamSekai:v14-dev Mar 4, 2024
ringo360 added a commit that referenced this pull request Jun 1, 2024
/random_num コマンドに振るサイコロの数を指定可能に (#37)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants