Update version and add nice alias
This commit is contained in:
parent
06d0c787c4
commit
b916a18eca
|
@ -8,7 +8,7 @@ import org.springframework.stereotype.Service
|
||||||
import kotlin.random.Random
|
import kotlin.random.Random
|
||||||
|
|
||||||
@Service
|
@Service
|
||||||
class Nice : Command("nice", group = CommandGroup.FUN, helpMesage = "_nice_") {
|
class Nice : Command("nice", group = CommandGroup.FUN, helpMesage = "_nice_", aliases = listOf("69")) {
|
||||||
override fun handle(event: CommandMessage): CommandResult {
|
override fun handle(event: CommandMessage): CommandResult {
|
||||||
if (Random(System.currentTimeMillis()).nextInt(100) < 90) {
|
if (Random(System.currentTimeMillis()).nextInt(100) < 90) {
|
||||||
event.reply("_nice_")
|
event.reply("_nice_")
|
||||||
|
|
|
@ -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.0
|
ottobot.version=1.1
|
Loading…
Reference in a new issue