2021-01-17 02:45:06 +00:00
|
|
|
package discord
|
|
|
|
|
2021-05-04 16:18:15 +00:00
|
|
|
import "git.birbmc.com/canopeas/imgur"
|
2021-01-17 02:45:06 +00:00
|
|
|
|
|
|
|
func init() {
|
2021-02-23 05:53:55 +00:00
|
|
|
commands = append(commands, &command{
|
|
|
|
name: "jupiter",
|
|
|
|
aliases: []string{"jup", "jupjup"},
|
2021-01-17 02:45:06 +00:00
|
|
|
validate: func(cmd commandInit) bool {
|
|
|
|
return true
|
|
|
|
},
|
|
|
|
run: func(cmd commandInit) (string, error) {
|
|
|
|
if !memeRateLimit.Try() {
|
|
|
|
return "", nil
|
|
|
|
}
|
|
|
|
img := imgur.Images[rand.Intn(len(imgur.Images))-1]
|
|
|
|
return img.Link, nil
|
|
|
|
},
|
|
|
|
help: "Get a Jupiter image",
|
2021-02-23 05:53:55 +00:00
|
|
|
})
|
2021-01-17 02:45:06 +00:00
|
|
|
}
|