kornflake
This commit is contained in:
parent
e970479928
commit
300ac93783
102
main.go
102
main.go
|
@ -125,154 +125,80 @@ func getCandyPic() string {
|
|||
|
||||
func candy(s *discordgo.Session, channel string) {
|
||||
candy1 := &discordgo.MessageEmbed{
|
||||
URL: "",
|
||||
Type: "",
|
||||
Title: "Candy",
|
||||
Description: "",
|
||||
Timestamp: "",
|
||||
Color: 0,
|
||||
Footer: &discordgo.MessageEmbedFooter{
|
||||
Text: "candy1",
|
||||
IconURL: "",
|
||||
ProxyIconURL: "",
|
||||
},
|
||||
Image: &discordgo.MessageEmbedImage{
|
||||
URL: getCandyPic(),
|
||||
ProxyURL: "",
|
||||
Width: 0,
|
||||
Height: 0,
|
||||
},
|
||||
Thumbnail: &discordgo.MessageEmbedThumbnail{},
|
||||
Video: &discordgo.MessageEmbedVideo{},
|
||||
Provider: &discordgo.MessageEmbedProvider{},
|
||||
Author: &discordgo.MessageEmbedAuthor{},
|
||||
Fields: []*discordgo.MessageEmbedField{},
|
||||
}
|
||||
candyRadmeal := &discordgo.MessageEmbed{
|
||||
URL: "",
|
||||
Type: "",
|
||||
Title: "Candy",
|
||||
Description: "",
|
||||
Timestamp: "",
|
||||
Color: 0xff0000,
|
||||
Footer: &discordgo.MessageEmbedFooter{
|
||||
Text: "candyRadmeal",
|
||||
IconURL: "",
|
||||
ProxyIconURL: "",
|
||||
},
|
||||
Image: &discordgo.MessageEmbedImage{
|
||||
URL: "https://cdn.discordapp.com/attachments/946859404819587162/946897683908542494/P10213-191951-1.jpg",
|
||||
ProxyURL: "",
|
||||
Width: 0,
|
||||
Height: 0,
|
||||
},
|
||||
Thumbnail: &discordgo.MessageEmbedThumbnail{},
|
||||
Video: &discordgo.MessageEmbedVideo{},
|
||||
Provider: &discordgo.MessageEmbedProvider{},
|
||||
Author: &discordgo.MessageEmbedAuthor{},
|
||||
Fields: []*discordgo.MessageEmbedField{},
|
||||
}
|
||||
candyCaptain := &discordgo.MessageEmbed{
|
||||
URL: "",
|
||||
Type: "",
|
||||
Title: "Captain's Candycorn",
|
||||
Description: "",
|
||||
Timestamp: "",
|
||||
Title: "Captain Candy",
|
||||
Color: 0xffe600,
|
||||
Footer: &discordgo.MessageEmbedFooter{
|
||||
Text: "candyCaptain",
|
||||
IconURL: "",
|
||||
ProxyIconURL: "",
|
||||
},
|
||||
Image: &discordgo.MessageEmbedImage{
|
||||
URL: "https://cdn.discordapp.com/attachments/956628829735125042/1023225555820216440/unknown.png",
|
||||
ProxyURL: "",
|
||||
Width: 0,
|
||||
Height: 0,
|
||||
},
|
||||
Thumbnail: &discordgo.MessageEmbedThumbnail{},
|
||||
Video: &discordgo.MessageEmbedVideo{},
|
||||
Provider: &discordgo.MessageEmbedProvider{},
|
||||
Author: &discordgo.MessageEmbedAuthor{},
|
||||
Fields: []*discordgo.MessageEmbedField{},
|
||||
}
|
||||
candyMilky := &discordgo.MessageEmbed{
|
||||
URL: "",
|
||||
Type: "",
|
||||
Title: "Chocolate Inaba",
|
||||
Description: "",
|
||||
Timestamp: "",
|
||||
Color: 0x6df175,
|
||||
Footer: &discordgo.MessageEmbedFooter{
|
||||
Text: "candyMilky",
|
||||
IconURL: "",
|
||||
ProxyIconURL: "",
|
||||
},
|
||||
Image: &discordgo.MessageEmbedImage{
|
||||
URL: "https://cdn.discordapp.com/attachments/956628829735125042/1023229123725893632/7c5085c86d4f230dc253c62b6266279f.jpg",
|
||||
ProxyURL: "",
|
||||
Width: 0,
|
||||
Height: 0,
|
||||
},
|
||||
Thumbnail: &discordgo.MessageEmbedThumbnail{},
|
||||
Video: &discordgo.MessageEmbedVideo{},
|
||||
Provider: &discordgo.MessageEmbedProvider{},
|
||||
Author: &discordgo.MessageEmbedAuthor{},
|
||||
Fields: []*discordgo.MessageEmbedField{},
|
||||
}
|
||||
candyMeta := &discordgo.MessageEmbed{
|
||||
URL: "",
|
||||
Type: "",
|
||||
Title: "Macaroons",
|
||||
Description: "",
|
||||
Timestamp: "",
|
||||
Color: 0xa90000,
|
||||
Footer: &discordgo.MessageEmbedFooter{
|
||||
Text: "candyMeta",
|
||||
IconURL: "",
|
||||
ProxyIconURL: "",
|
||||
},
|
||||
Image: &discordgo.MessageEmbedImage{
|
||||
URL: "https://cdn.discordapp.com/attachments/956628829735125042/1023271248903544972/macaroon.jpg",
|
||||
ProxyURL: "",
|
||||
Width: 0,
|
||||
Height: 0,
|
||||
},
|
||||
Thumbnail: &discordgo.MessageEmbedThumbnail{},
|
||||
Video: &discordgo.MessageEmbedVideo{},
|
||||
Provider: &discordgo.MessageEmbedProvider{},
|
||||
Author: &discordgo.MessageEmbedAuthor{},
|
||||
Fields: []*discordgo.MessageEmbedField{},
|
||||
}
|
||||
candyXorcon := &discordgo.MessageEmbed{
|
||||
URL: "",
|
||||
Type: "",
|
||||
Title: "Xorconium Pills",
|
||||
Description: "",
|
||||
Timestamp: "",
|
||||
Color: 0x306AC0,
|
||||
Footer: &discordgo.MessageEmbedFooter{
|
||||
Text: "candyXorcon",
|
||||
IconURL: "",
|
||||
ProxyIconURL: "",
|
||||
},
|
||||
Image: &discordgo.MessageEmbedImage{
|
||||
URL: "https://cdn.discordapp.com/attachments/956628829735125042/1024326522389147718/Alpha_Xorcon.png",
|
||||
ProxyURL: "",
|
||||
Width: 0,
|
||||
Height: 0,
|
||||
},
|
||||
Thumbnail: &discordgo.MessageEmbedThumbnail{},
|
||||
Video: &discordgo.MessageEmbedVideo{},
|
||||
Provider: &discordgo.MessageEmbedProvider{},
|
||||
Author: &discordgo.MessageEmbedAuthor{},
|
||||
Fields: []*discordgo.MessageEmbedField{},
|
||||
}
|
||||
candyKornflake := &discordgo.MessageEmbed{
|
||||
Title: "Candy Korn",
|
||||
Color: 0xff5500,
|
||||
Footer: &discordgo.MessageEmbedFooter{
|
||||
Text: "candyKornflake",
|
||||
},
|
||||
Image: &discordgo.MessageEmbedImage{
|
||||
URL: "https://cdn.discordapp.com/attachments/956628829735125042/1024436493495836762/kornflake.jpg",
|
||||
},
|
||||
}
|
||||
|
||||
drop := candy1
|
||||
|
||||
rand.Seed(time.Now().Unix())
|
||||
switch rand.Intn(15) {
|
||||
switch rand.Intn(16) {
|
||||
case 1:
|
||||
drop = candyCaptain
|
||||
case 2:
|
||||
|
@ -283,6 +209,8 @@ func candy(s *discordgo.Session, channel string) {
|
|||
drop = candyMeta
|
||||
case 5:
|
||||
drop = candyXorcon
|
||||
case 6:
|
||||
drop = candyKornflake
|
||||
default:
|
||||
drop = candy1
|
||||
}
|
||||
|
@ -739,6 +667,8 @@ func messageCreate(s *discordgo.Session, m *discordgo.MessageCreate) {
|
|||
candyvalue = 50
|
||||
bufftype = "alpha"
|
||||
buffvalue = 1
|
||||
case "candyKornflake":
|
||||
candyvalue = 200
|
||||
default:
|
||||
candyvalue = 100
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue