bcdice

package
v0.0.0-...-3319774 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 4, 2020 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BCDice

type BCDice struct {
	// 設定されているダイスボット
	DiceBot dicebot.DiceBot
	// contains filtered or unexported fields
}

BCDiceの全体動作を統括する構造体。

func New

func New(f feeder.DieFeeder) *BCDice

New は新しいBCDiceを構築する。

func (*BCDice) DieFeeder

func (b *BCDice) DieFeeder() feeder.DieFeeder

DieFeeder は設定されているダイス供給機を返す。

func (*BCDice) ExecuteBasicCommand

func (b *BCDice) ExecuteBasicCommand(c string) (*command.Result, error)

ExecuteBasicCommand はBCDiceの基本コマンドを実行する。

func (*BCDice) ExecuteCommand

func (b *BCDice) ExecuteCommand(input string) (*command.Result, error)

ExecuteCommand は指定されたコマンドを実行する。

func (*BCDice) ExecuteDiceBotCommand

func (b *BCDice) ExecuteDiceBotCommand(c string) (*command.Result, error)

ExecuteDiceBotCommand は設定されているダイスボットを使用して指定されたコマンドを実行する。

func (*BCDice) SetDiceBotByGameID

func (b *BCDice) SetDiceBotByGameID(gameID string) error

SetDiceBotByGameID は、指定された識別子を持つゲームシステムのダイスボットを使用するよう設定する。

func (*BCDice) SetDieFeeder

func (b *BCDice) SetDieFeeder(f feeder.DieFeeder)

SetDieFeeder はダイス供給機を指定されたものに設定する。 合わせてダイスローラーも設定される。

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL