Merge branch 'wooloo' into 'master'

add wooloo because victor kept complaining

See merge request jdejeu/ottobotv2!8
This commit is contained in:
Julius 2019-06-25 18:26:34 +00:00
commit 8d5e064522
2 changed files with 30 additions and 1 deletions

View file

@ -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
}
}

View file

@ -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