Versions in this module Expand all Collapse all v1 v1.0.8 Aug 16, 2026 v1.0.7 Aug 16, 2026 Changes in this version + type Bot struct + func NewBot(id string, config Config) *Bot + func NewHeadlessBot(wc *client.WorldClient, cfg Config) *Bot + func (b *Bot) AttackTarget(guid uint64) error + func (b *Bot) CanCast(spellID uint32, targetGUID uint64) bool + func (b *Bot) CastSpell(spellID uint32, targetGUID uint64) error + func (b *Bot) ConsumeTeleport() bool + func (b *Bot) Events() []BotEvent + func (b *Bot) FaceTarget(guid uint64) bool + func (b *Bot) GetClass() uint8 + func (b *Bot) GetFacing() float32 + func (b *Bot) GetHealth() (current, max uint32) + func (b *Bot) GetLevel() uint32 + func (b *Bot) GetNearbyPlayers(maxDist float32) []luaengine.UnitInfo + func (b *Bot) GetNearbyUnits(maxDist float32) []luaengine.UnitInfo + func (b *Bot) GetOwnGUID() uint64 + func (b *Bot) GetPetGUID() uint64 + func (b *Bot) GetPosition() (x, y, z, o float32) + func (b *Bot) GetPower() (current, max uint32) + func (b *Bot) GetPowerType() uint8 + func (b *Bot) GetRace() uint8 + func (b *Bot) GetStance() int + func (b *Bot) GetTargetGUID() uint64 + func (b *Bot) GetUnitInfo(guid uint64) *luaengine.UnitInfo + func (b *Bot) HasAuraOn(guid uint64, spellID uint32) bool + func (b *Bot) InCombat() bool + func (b *Bot) IsAlive() bool + func (b *Bot) IsBehindTarget(targetGUID uint64) bool + func (b *Bot) IsMoving() bool + func (b *Bot) IsSpellReady(spellID uint32) bool + func (b *Bot) LoadAIBundle(bundle scenario.AIBundle) error + func (b *Bot) LoadLuaScript(code string) error + func (b *Bot) Log(format string, args ...interface{}) + func (b *Bot) Loot(guid uint64) error + func (b *Bot) LootAll(guid uint64) error + func (b *Bot) MoveTo(x, y, z float32) error + func (b *Bot) PetAttack(target uint64) + func (b *Bot) Run() BotResult + func (b *Bot) RunAIOnly() BotResult + func (b *Bot) SendChat(message string) error + func (b *Bot) SendCommand(command string) error + func (b *Bot) SendGuildCommand(command string) error + func (b *Bot) SetFacing(o float32) error + func (b *Bot) SetLevel(level uint32) + func (b *Bot) SetSheathed(state uint32) error + func (b *Bot) SetTarget(guid uint64) error + func (b *Bot) Status() BotResult + func (b *Bot) Stop() + func (b *Bot) StopAttack() error + func (b *Bot) StopMoving() error + func (b *Bot) ValidationMode() bool + type BotEvent struct + Message string + Time time.Time + Type string + type BotResult struct + Deaths int + Error string + ID string + Kills int + Level uint32 + Status BotStatus + type BotStatus string + const BotStatusAuthenticating + const BotStatusConnecting + const BotStatusDone + const BotStatusError + const BotStatusIdle + const BotStatusInWorld + type Config struct + AIBundle scenario.AIBundle + AITickMs int + AllowDBSetup bool + AuthServer string + CharDBDSN string + CharacterName string + Class uint8 + DataDir string + DeleteExistingCharacters bool + DisableTargetCache bool + DungeonName string + EnableDetailedAuras bool + EnablePacketTrace bool + Gender uint8 + LogDecisionsToChat bool + LuaCode string + LuaScript string + Mode string + Password string + PathfindingAddress string + Race uint8 + RealmIndex int + SkipCharacterSetup bool + Username string + ValidationLogPath string + ValidationMode bool + func DefaultConfig() Config + type Option func(*Config) + func WithAIBundle(b scenario.AIBundle) Option + func WithAllowDBSetup(allow bool) Option + func WithBehaviorProvider(_ interface{}) Option + func WithDataDir(dir string) Option + func WithLuaCode(code string) Option + func WithSkipCharacterSetup(skip bool) Option