-
-
各ゲームシステムに紐づくドキュメントは
現在、GameSystem派生の各クラスの下に、プレーンテキストの形で記述されています。
(ただし標準ダイスボットを除く)
これをJSON等で構造化することで
公式ドキュメント作成やオンセツール側での様々な活用が可能になると考えます。
現状のHELP_MESSAGEを見て検討したところ、以下のような構造であればうまく整理できそうです。
…
R-F-D updated
2 years ago
-
例えばD&D5thの判定では、有利/不利が付き(D20を2つ振り、有利なら大きい方、不利なら小さい方を取る)、さらにそれに呪文の効果などで任意のダイスを増減する(ブレスの効果で+1d4など)。
D&D5thの有利/不利をDAx、DDx(xは数値)等と実装して、D20を複数振って大きい/小さい方を取ったのち、後の処理(任意のダイスの結果を増減、プラス、マイナス修正)を標準ダイスボットに委譲する…
-
## 問題点
Rubyの慣習ではメソッド/変数名にはsnake_caseを用いることになっている。しかし、現状のコードでは、camelCaseとsnake_caseが混在し、大変見辛いことになっている。
Rubyの慣習に全て合わせるのが最もメンテナンス性が上がるが、主要なメソッドの大部分がcamelCaseで命名されているため、全て変更するわけにもいけない。そこで、議論して折衷案的な命…
-
チャット送信時に先頭が#の場合、DiceBotが動作してしまいます。
#1文字のみでも発生し、結果は空欄になります。
v1.13.2で確認しました。
-
## 現状
ソースコード上の文字列リテラルをそのまま置き換えて別ファイルにすることで対応
## 問題点
元の日本語ファイルにロジックのミス等があった時に、多言語対応したファイルに反映させるのが困難
-
[ダイス予測](https://dicespec.vercel.app/expect)と[ダイスロール](https://dicespec.vercel.app/dice)において全角文字を含むコマンドが実行できない
BCDice自体は全角コマンドに対応していないが、CCFOLIAは対応している模様。
対応するか検討中
cp-20 updated
2 years ago
-
環境:
- Azure上のCentOS7
- openjdk-8-jre
- tmux上で「nohup sh start.sh >log.txt 2>&1 https://www.taruki.com:443: Connection timed out (Read failed)
Mar 07, 2020 3:28:32 PM org.apache.http.impl.execchain.…
-
複数の変数入りのチャットパレットが、正しく展開されずコマンドエラーとなる場合があり、ダイスが振れません。
( ユドナリウムやユドナリウム 2d では正常にダイスが振れているチャットパレットです )
withFly ですと、チャットパレット行を選択した時点で変数が自動で代入されておりますが、1 つ目の変数は正常展開されるものの、2 つ目の変数展開で数字の前に半角スペースが入ってしまい ( 下記画…
-
ずっと動かしている bot が22~24時くらいにダウンし、
5~10分くらいで復旧する現象がある。
ここ最近毎日なのでなんとかしたい。
Bot がログインしていない状態になるので Discord - Bot アプリ間の通信が死んでると思われる。
しかし、プロセスは動いているし数分で回復するのでネットワークの瞬断か何かか?