Skip to content

Commit

Permalink
/v1/onsetでsysパラメータの挙動を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
ysakasin committed Feb 6, 2017
1 parent d66c068 commit 0ef8fb0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ Onset! Version 2.1.2に付属しているroll.rbと同じ挙動を提供しま
パラメータ | 例 | 説明
--------- | ------------- | -----
`list` | `1` | 対応ダイスボット一覧取得("list=1"固定)
`sys` | `Cthulhu` | システム名
`sys` | `Cthulhu` | システム名(デフォルト値`DiceBot`
`text` | `6D10>=35` | コマンドの文字列

### レスポンス例
Expand Down
2 changes: 1 addition & 1 deletion server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def diceroll(system, command)
return BCDice::SYSTEMS.join("\n")
end

result, secret = diceroll(params[:sys], params[:text])
result, secret = diceroll(params[:sys] || "DiceBot", params[:text])

if result.nil?
"error"
Expand Down

0 comments on commit 0ef8fb0

Please sign in to comment.