投票兼賭け・cpoll / cpollbet コマンド#61
Open
strs2 wants to merge 6 commits intomckomaken:mainfrom
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
そんな投票機能をコマ研Botに追加しました!
使い方
凡例
ざっくりとした説明。特徴もここに入ります。
2~3行目からは細かい仕様をまとめておきます。
/cpoll (タイトル) (選択肢1, 2, ...)
投票を行います。匿名投票であり、投票先の開示が行われることはありません。誰でも作れます。
選択肢は 1個 ~ 15個で、投票終了は任意のタイミングで行えます。
投票の通知や途中経過は一切なく、終了時にはじめて総票数と結果が明らかになります。
/cpollbet (タイトル) (選択肢1, 2, ...) (賭け量) (ルール) (ルール補助) [オッズ]
賭けつつ投票を行います。同じく匿名投票です。誰でも作れます。
選択肢は 2個 ~ 15個で、投票終了は任意のタイミングで行えます。
投票の通知や途中経過は一切なく、終了時にはじめて総票数と結果が明らかになります。
賭け量は 0 ~ 1500 です。投票者はそれぞれ賭け量を払います。
また、投票を開設する人は賭け量の2倍を払います。
ルールは 1 ~ 6 までありますが、今後も追加される余地があります。
それぞれのルール:
ルール補助は 2. と 5. のルールにおいて使われます。
2 → 選択肢の指定(〇番目として)
5 → 割合の指定(〇% 以下として)
オッズはデフォルトで 2倍ですが、選択肢ごとに 0 ~ 2.5 倍まで指定できます。
追記
ckill の「ゲームの仕様」問題を修正しました。