|
|
|
@ -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) { |
|
|
|
|
// 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
|
|
|
|
|
minCommon := 4 |
|
|
|
|
maxCommon := 6 |
|
|
|
|