Browse Source

Add data struct documentation

master
Matthew Faltys 1 year ago
parent
commit
7863802cc8
  1. 11
      lorebot/lorebot.go

11
lorebot/lorebot.go

@ -301,6 +301,17 @@ func rngHandler(s *discordgo.Session, m *discordgo.MessageCreate, redisClient *r
} }
func shopHandler(s *discordgo.Session, m *discordgo.MessageCreate, redisClient *redis.Client) { func shopHandler(s *discordgo.Session, m *discordgo.MessageCreate, redisClient *redis.Client) {
// data format
// redis set for the following indexes:
// index:dnd:common
// index:dnd:uncommon
// index:dnd:rare
// index:dnd:very_rare
// index:dnd:legendary
//
// redis hash with the following data
// dnd:abracadabrus name x rarity x price x type x
// item settings // item settings
minCommon := 4 minCommon := 4
maxCommon := 6 maxCommon := 6

Loading…
Cancel
Save