mirror of
https://github.com/idanoo/GoDiscMoji
synced 2025-07-03 03:12:15 +00:00
update
This commit is contained in:
parent
cf3326c454
commit
544fc580b2
1 changed files with 4 additions and 4 deletions
|
@ -68,7 +68,7 @@ func showTopEmojis(s *discordgo.Session, i *discordgo.InteractionCreate) {
|
||||||
users := []string{}
|
users := []string{}
|
||||||
msg += fmt.Sprintf("%s: %d", k, v)
|
msg += fmt.Sprintf("%s: %d", k, v)
|
||||||
for sk, sv := range topUsers {
|
for sk, sv := range topUsers {
|
||||||
users = append(users, fmt.Sprintf("`<@%s>`: %d", sk, sv))
|
users = append(users, fmt.Sprintf("<@%s>: %d", sk, sv))
|
||||||
}
|
}
|
||||||
msg += " (" + strings.Join(users, ", ") + ")\n"
|
msg += " (" + strings.Join(users, ", ") + ")\n"
|
||||||
}
|
}
|
||||||
|
@ -76,7 +76,7 @@ func showTopEmojis(s *discordgo.Session, i *discordgo.InteractionCreate) {
|
||||||
s.InteractionRespond(i.Interaction, &discordgo.InteractionResponse{
|
s.InteractionRespond(i.Interaction, &discordgo.InteractionResponse{
|
||||||
Type: discordgo.InteractionResponseChannelMessageWithSource,
|
Type: discordgo.InteractionResponseChannelMessageWithSource,
|
||||||
Data: &discordgo.InteractionResponseData{
|
Data: &discordgo.InteractionResponseData{
|
||||||
Content: msg,
|
Content: "```\n" + msg + "\n```",
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -98,7 +98,7 @@ func showTopUsers(s *discordgo.Session, i *discordgo.InteractionCreate) {
|
||||||
}
|
}
|
||||||
|
|
||||||
users := []string{}
|
users := []string{}
|
||||||
msg += fmt.Sprintf("`<@%s>`: %d", k, v)
|
msg += fmt.Sprintf("<@%s>: %d", k, v)
|
||||||
for sk, sv := range topUsers {
|
for sk, sv := range topUsers {
|
||||||
users = append(users, fmt.Sprintf("%s: %d", sk, sv))
|
users = append(users, fmt.Sprintf("%s: %d", sk, sv))
|
||||||
}
|
}
|
||||||
|
@ -108,7 +108,7 @@ func showTopUsers(s *discordgo.Session, i *discordgo.InteractionCreate) {
|
||||||
s.InteractionRespond(i.Interaction, &discordgo.InteractionResponse{
|
s.InteractionRespond(i.Interaction, &discordgo.InteractionResponse{
|
||||||
Type: discordgo.InteractionResponseChannelMessageWithSource,
|
Type: discordgo.InteractionResponseChannelMessageWithSource,
|
||||||
Data: &discordgo.InteractionResponseData{
|
Data: &discordgo.InteractionResponseData{
|
||||||
Content: msg,
|
Content: "```\n" + msg + "\n```",
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue