add wooloo because victor kept complaining
This commit is contained in:
parent
55275cceb4
commit
81c763e57f
|
@ -0,0 +1,29 @@
|
||||||
|
package nl.voidcorp.discord.commands.`fun`
|
||||||
|
|
||||||
|
import net.dv8tion.jda.api.EmbedBuilder
|
||||||
|
import nl.voidcorp.discord.command.Command
|
||||||
|
import nl.voidcorp.discord.command.CommandGroup
|
||||||
|
import nl.voidcorp.discord.command.CommandMessage
|
||||||
|
import nl.voidcorp.discord.command.CommandResult
|
||||||
|
import org.springframework.stereotype.Service
|
||||||
|
import kotlin.random.Random
|
||||||
|
|
||||||
|
@Service
|
||||||
|
class WoolooCommand : Command(
|
||||||
|
"wooloo",
|
||||||
|
helpMesage = "WOOLOO!",
|
||||||
|
usage = "wooloo",
|
||||||
|
group = CommandGroup.FUN,
|
||||||
|
aliases = listOf("wooloo!", "sheepy"),
|
||||||
|
allowAnywhere = true
|
||||||
|
) {
|
||||||
|
|
||||||
|
val rand = Random(System.currentTimeMillis())
|
||||||
|
override fun handle(event: CommandMessage): CommandResult {
|
||||||
|
|
||||||
|
val b = EmbedBuilder().setTitle("Wooloo best sheepy")
|
||||||
|
.setImage("https://cdn.voidcorp.nl/otto/wooloo${rand.nextInt(1, 4)}.jpg").setFooter("Best Sheep <3")
|
||||||
|
event.reply(b.build())
|
||||||
|
return CommandResult.SUCCESS
|
||||||
|
}
|
||||||
|
}
|
|
@ -8,4 +8,4 @@ spring.jpa.generate-ddl=true
|
||||||
spring.jpa.hibernate.ddl-auto=create-drop
|
spring.jpa.hibernate.ddl-auto=create-drop
|
||||||
spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=true
|
spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=true
|
||||||
|
|
||||||
ottobot.version=1.5
|
ottobot.version=1.6
|
Loading…
Reference in a new issue