Documentation ¶
Index ¶
- type ControllerSetting
- type Discord
- func (d *Discord) CheckDemoAuth(ctx context.Context, mid string, filename string, mapNumber int, ...) error
- func (*Discord) CheckEventAuth(ctx context.Context, mid string, reqAuth string) error
- func (d *Discord) Close() error
- func (d *Discord) EventAuth(ctx context.Context, mid string, auth string) error
- func (d *Discord) HandleOnBackupRestore(ctx context.Context, p got5.OnBackupRestorePayload) error
- func (d *Discord) HandleOnBombDefused(ctx context.Context, p got5.OnBombDefusedPayload) error
- func (d *Discord) HandleOnBombExploded(ctx context.Context, p got5.OnBombExplodedPayload) error
- func (d *Discord) HandleOnBombPlanted(ctx context.Context, p got5.OnBombPlantedPayload) error
- func (d *Discord) HandleOnDecoyStarted(ctx context.Context, p got5.OnDecoyStartedPayload) error
- func (d *Discord) HandleOnDemoFinished(ctx context.Context, p got5.OnDemoFinishedPayload) error
- func (d *Discord) HandleOnDemoUploadEnded(ctx context.Context, p got5.OnDemoUploadEndedPayload) error
- func (d *Discord) HandleOnEvent(ctx context.Context, p got5.OnEventPayload) error
- func (d *Discord) HandleOnFlashbangDetonated(ctx context.Context, p got5.OnFlashbangDetonatedPayload) error
- func (d *Discord) HandleOnGameStateChanged(ctx context.Context, p got5.OnGameStateChangedPayload) error
- func (d *Discord) HandleOnGoingLive(ctx context.Context, p got5.OnGoingLivePayload) error
- func (d *Discord) HandleOnGrenadeThrown(ctx context.Context, p got5.OnGrenadeThrownPayload) error
- func (d *Discord) HandleOnHEGrenadeDetonated(ctx context.Context, p got5.OnHEGrenadeDetonatedPayload) error
- func (d *Discord) HandleOnKnifeRoundStarted(ctx context.Context, p got5.OnKnifeRoundStartedPayload) error
- func (d *Discord) HandleOnKnifeRoundWon(ctx context.Context, p got5.OnKnifeRoundWonPayload) error
- func (d *Discord) HandleOnLoadMatchConfigFailed(ctx context.Context, p got5.OnLoadMatchConfigFailedPayload) error
- func (d *Discord) HandleOnMapPicked(ctx context.Context, p got5.OnMapPickedPayload) error
- func (d *Discord) HandleOnMapResult(ctx context.Context, p got5.OnMapResultPayload) error
- func (d *Discord) HandleOnMapVetoed(ctx context.Context, p got5.OnMapVetoedPayload) error
- func (d *Discord) HandleOnMatchPaused(ctx context.Context, p got5.OnMatchPausedPayload) error
- func (d *Discord) HandleOnMatchUnpaused(ctx context.Context, p got5.OnMatchUnpausedPayload) error
- func (d *Discord) HandleOnMolotovDetonated(ctx context.Context, p got5.OnMolotovDetonatedPayload) error
- func (d *Discord) HandleOnPauseBegan(ctx context.Context, p got5.OnPauseBeganPayload) error
- func (d *Discord) HandleOnPlayerBecameMVP(ctx context.Context, p got5.OnPlayerBecameMVPPayload) error
- func (d *Discord) HandleOnPlayerConnected(ctx context.Context, p got5.OnPlayerConnectedPayload) error
- func (d *Discord) HandleOnPlayerDeath(ctx context.Context, p got5.OnPlayerDeathPayload) error
- func (d *Discord) HandleOnPlayerDisconnected(ctx context.Context, p got5.OnPlayerDisconnectedPayload) error
- func (d *Discord) HandleOnPlayerSay(ctx context.Context, p got5.OnPlayerSayPayload) error
- func (d *Discord) HandleOnPreLoadMatchConfig(ctx context.Context, p got5.OnPreLoadMatchConfigPayload) error
- func (d *Discord) HandleOnRoundEnd(ctx context.Context, p got5.OnRoundEndPayload) error
- func (d *Discord) HandleOnRoundStart(ctx context.Context, p got5.OnRoundStartPayload) error
- func (d *Discord) HandleOnRoundStatsUpdated(ctx context.Context, p got5.OnRoundStatsUpdatedPayload) error
- func (d *Discord) HandleOnSeriesInit(ctx context.Context, p got5.OnSeriesInitPayload) error
- func (d *Discord) HandleOnSeriesResult(ctx context.Context, p got5.OnSeriesResultPayload) error
- func (d *Discord) HandleOnSidePicked(ctx context.Context, p got5.OnSidePickedPayload) error
- func (d *Discord) HandleOnSmokeGrenadeDetonated(ctx context.Context, p got5.OnSmokeGrenadeDetonatedPayload) error
- func (d *Discord) HandleOnTeamReadyStatusChanged(ctx context.Context, p got5.OnTeamReadyStatusChangedPayload) error
- func (d *Discord) Hostname() string
- func (d *Discord) Load(ctx context.Context, mid string) (got5.G5Match, error)
- func (d *Discord) MatchAuth(ctx context.Context, mid string, auth string) error
- func (d *Discord) RegisterMatch(ctx context.Context, m got5.Match) (got5.Match, error)
- func (*Discord) UpdateMatch(ctx context.Context, mid string, m got5.Match) error
- func (d *Discord) Upload(ctx context.Context, mid string, filename string, r io.Reader) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ControllerSetting ¶
type ControllerSetting struct { Hostname string Port int // contains filtered or unexported fields }
ControllerSetting Settings
type Discord ¶
type Discord struct {
// contains filtered or unexported fields
}
Discord is Automated CS:GO/get5 BOT. 外部のDBなどを使わずに動くため、永続化したいのであればFirebaseなどのクライアントへ保存することを推奨 discord implements all of EventHandler, Database, MatchLoader, DemoUploader.
func NewDiscord ¶
NewDiscord Get discord pointer
func (*Discord) CheckDemoAuth ¶
func (d *Discord) CheckDemoAuth(ctx context.Context, mid string, filename string, mapNumber int, serverID string, auth string) error
CheckDemoAuth implements got5.JWTAuth
func (*Discord) CheckEventAuth ¶
CheckEventAuth implements got5.EventHandler
func (*Discord) HandleOnBackupRestore ¶
HandleOnBackupRestore implements got5.EventHandler
func (*Discord) HandleOnBombDefused ¶
HandleOnBombDefused implements got5.EventHandler
func (*Discord) HandleOnBombExploded ¶
HandleOnBombExploded implements got5.EventHandler
func (*Discord) HandleOnBombPlanted ¶
HandleOnBombPlanted implements got5.EventHandler
func (*Discord) HandleOnDecoyStarted ¶
HandleOnDecoyStarted implements got5.EventHandler
func (*Discord) HandleOnDemoFinished ¶
HandleOnDemoFinished implements got5.EventHandler
func (*Discord) HandleOnDemoUploadEnded ¶
func (d *Discord) HandleOnDemoUploadEnded(ctx context.Context, p got5.OnDemoUploadEndedPayload) error
HandleOnDemoUploadEnded implements got5.EventHandler
func (*Discord) HandleOnEvent ¶
HandleOnEvent implements got5.EventHandler
func (*Discord) HandleOnFlashbangDetonated ¶
func (d *Discord) HandleOnFlashbangDetonated(ctx context.Context, p got5.OnFlashbangDetonatedPayload) error
HandleOnFlashbangDetonated implements got5.EventHandler
func (*Discord) HandleOnGameStateChanged ¶
func (d *Discord) HandleOnGameStateChanged(ctx context.Context, p got5.OnGameStateChangedPayload) error
HandleOnGameStateChanged implements got5.EventHandler
func (*Discord) HandleOnGoingLive ¶
HandleOnGoingLive implements got5.EventHandler
func (*Discord) HandleOnGrenadeThrown ¶
HandleOnGrenadeThrown implements got5.EventHandler
func (*Discord) HandleOnHEGrenadeDetonated ¶
func (d *Discord) HandleOnHEGrenadeDetonated(ctx context.Context, p got5.OnHEGrenadeDetonatedPayload) error
HandleOnHEGrenadeDetonated implements got5.EventHandler
func (*Discord) HandleOnKnifeRoundStarted ¶
func (d *Discord) HandleOnKnifeRoundStarted(ctx context.Context, p got5.OnKnifeRoundStartedPayload) error
HandleOnKnifeRoundStarted implements got5.EventHandler
func (*Discord) HandleOnKnifeRoundWon ¶
HandleOnKnifeRoundWon implements got5.EventHandler
func (*Discord) HandleOnLoadMatchConfigFailed ¶
func (d *Discord) HandleOnLoadMatchConfigFailed(ctx context.Context, p got5.OnLoadMatchConfigFailedPayload) error
HandleOnLoadMatchConfigFailed implements got5.EventHandler
func (*Discord) HandleOnMapPicked ¶
HandleOnMapPicked implements got5.EventHandler
func (*Discord) HandleOnMapResult ¶
HandleOnMapResult implements got5.EventHandler どうせBO1だしマップ結果も出さなくていいんじゃないか...?
func (*Discord) HandleOnMapVetoed ¶
HandleOnMapVetoed implements got5.EventHandler
func (*Discord) HandleOnMatchPaused ¶
HandleOnMatchPaused implements got5.EventHandler
func (*Discord) HandleOnMatchUnpaused ¶
HandleOnMatchUnpaused implements got5.EventHandler
func (*Discord) HandleOnMolotovDetonated ¶
func (d *Discord) HandleOnMolotovDetonated(ctx context.Context, p got5.OnMolotovDetonatedPayload) error
HandleOnMolotovDetonated implements got5.EventHandler
func (*Discord) HandleOnPauseBegan ¶
HandleOnPauseBegan implements got5.EventHandler.
func (*Discord) HandleOnPlayerBecameMVP ¶
func (d *Discord) HandleOnPlayerBecameMVP(ctx context.Context, p got5.OnPlayerBecameMVPPayload) error
HandleOnPlayerBecameMVP implements got5.EventHandler
func (*Discord) HandleOnPlayerConnected ¶
func (d *Discord) HandleOnPlayerConnected(ctx context.Context, p got5.OnPlayerConnectedPayload) error
HandleOnPlayerConnected implements got5.EventHandler
func (*Discord) HandleOnPlayerDeath ¶
HandleOnPlayerDeath implements got5.EventHandler
func (*Discord) HandleOnPlayerDisconnected ¶
func (d *Discord) HandleOnPlayerDisconnected(ctx context.Context, p got5.OnPlayerDisconnectedPayload) error
HandleOnPlayerDisconnected implements got5.EventHandler
func (*Discord) HandleOnPlayerSay ¶
HandleOnPlayerSay implements got5.EventHandler
func (*Discord) HandleOnPreLoadMatchConfig ¶
func (d *Discord) HandleOnPreLoadMatchConfig(ctx context.Context, p got5.OnPreLoadMatchConfigPayload) error
HandleOnPreLoadMatchConfig implements got5.EventHandler
func (*Discord) HandleOnRoundEnd ¶
HandleOnRoundEnd implements got5.EventHandler
func (*Discord) HandleOnRoundStart ¶
HandleOnRoundStart implements got5.EventHandler
func (*Discord) HandleOnRoundStatsUpdated ¶
func (d *Discord) HandleOnRoundStatsUpdated(ctx context.Context, p got5.OnRoundStatsUpdatedPayload) error
HandleOnRoundStatsUpdated implements got5.EventHandler
func (*Discord) HandleOnSeriesInit ¶
HandleOnSeriesInit implements got5.EventHandler
func (*Discord) HandleOnSeriesResult ¶
HandleOnSeriesResult implements got5.EventHandler
func (*Discord) HandleOnSidePicked ¶
HandleOnSidePicked implements got5.EventHandler
func (*Discord) HandleOnSmokeGrenadeDetonated ¶
func (d *Discord) HandleOnSmokeGrenadeDetonated(ctx context.Context, p got5.OnSmokeGrenadeDetonatedPayload) error
HandleOnSmokeGrenadeDetonated implements got5.EventHandler
func (*Discord) HandleOnTeamReadyStatusChanged ¶
func (d *Discord) HandleOnTeamReadyStatusChanged(ctx context.Context, p got5.OnTeamReadyStatusChangedPayload) error
HandleOnTeamReadyStatusChanged implements got5.EventHandler
func (*Discord) RegisterMatch ¶
RegisterMatch implements got5.EventHandler
func (*Discord) UpdateMatch ¶
UpdateMatch implements got5.EventHandler