Documentation ¶
Index ¶
- Constants
- type AucBot
- func (ab *AucBot) BuyersGuide(session transport.Session, queryString, profString string, rank int) (*transport.Response, error)
- func (ab *AucBot) BuyersGuideExtended(session transport.Session, queryString, profString string, rank int) (*transport.Response, error)
- func (ab *AucBot) Choice(session transport.Session, queryString string) (*transport.Response, error)
- func (ab *AucBot) Clear(session transport.Session, _ string) (*transport.Response, error)
- func (ab *AucBot) Component(session transport.Session, queryString string) (*transport.Response, error)
- func (ab *AucBot) Group(session transport.Session, queryString string) (*transport.Response, error)
- func (ab *AucBot) Help(_ transport.Session, _ string) (*transport.Response, error)
- func (ab *AucBot) Price(session transport.Session, queryString string, rank int) (*transport.Response, error)
- func (ab *AucBot) Realm(session transport.Session, queryString string) (*transport.Response, error)
- func (ab *AucBot) ShoppingList(session transport.Session, queryString string) (*transport.Response, error)
- func (ab *AucBot) ShoppingListAdd(session transport.Session, queryString string, rank, threshold int) (*transport.Response, error)
- func (ab *AucBot) ShoppingListDelete(session transport.Session, queryString string, rank int) (*transport.Response, error)
- type ItemRequest
Constants ¶
View Source
const ( NoActiveList = "You have no active shopping list. Create one first with `/shopping-list show`." GenericErrorOccurred = "Error retrieving the requested data. Please try again." )
View Source
const ErrNoRealmPrefix = "No realm is assigned to this"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AucBot ¶
type AucBot struct { AuctionAccessors cmap.ConcurrentMap DbAccessor *db.Accessor BnetAccessor *bnet.Accessor AdsAccessor *ads.Accessor CacheAccessor cache.ICache MultiItemPrintoutCap int ShoppingListMaxItems int EnableValuationFunctions bool EnableADS bool DragonflightDefaultItemRank int }
AucBot holds all data accessors and bot functions
func (*AucBot) BuyersGuide ¶
func (ab *AucBot) BuyersGuide(session transport.Session, queryString, profString string, rank int) (*transport.Response, error)
BuyersGuide is called on !bg and handles basic buyer's guide requests
func (*AucBot) BuyersGuideExtended ¶
func (ab *AucBot) BuyersGuideExtended(session transport.Session, queryString, profString string, rank int) (*transport.Response, error)
BuyersGuideExtended is called on /buyers-guide and handles extended buyer's guide requests
func (*AucBot) Choice ¶
func (ab *AucBot) Choice(session transport.Session, queryString string) (*transport.Response, error)
Choice processes any pending requests for multiple item resolution
func (*AucBot) Component ¶
func (ab *AucBot) Component(session transport.Session, queryString string) (*transport.Response, error)
Component is called on !c or !component and prints item components via recipes
func (*AucBot) Price ¶
func (ab *AucBot) Price(session transport.Session, queryString string, rank int) (*transport.Response, error)
Price is called on /price and prints price info on one item
func (*AucBot) ShoppingList ¶
func (*AucBot) ShoppingListAdd ¶
type ItemRequest ¶
type ItemRequest struct { Item *model.Item Rank int // Shadowlands legendary ranks are encoded by bonusID, // where DF ranks are an abstraction over multiple itemIDs with identical names. // if this is set, price queries should ignore the rank parameter. ItemIDEncodedRank bool DefaultRankUsed uint8 }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.