From 18c4cbf43b58976f6cfca10cfb82196688cd890c Mon Sep 17 00:00:00 2001 From: Julius de Jeu Date: Wed, 28 Aug 2019 19:48:01 +0200 Subject: [PATCH] Make XKCD command allowed everywhere --- .../nl/voidcorp/discord/commands/fun/XKXDComicCommand.kt | 3 ++- src/main/resources/application.properties | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/nl/voidcorp/discord/commands/fun/XKXDComicCommand.kt b/src/main/kotlin/nl/voidcorp/discord/commands/fun/XKXDComicCommand.kt index 05fe0dc..100b880 100644 --- a/src/main/kotlin/nl/voidcorp/discord/commands/fun/XKXDComicCommand.kt +++ b/src/main/kotlin/nl/voidcorp/discord/commands/fun/XKXDComicCommand.kt @@ -16,7 +16,8 @@ class XKXDComicCommand : Command( "xkcd", helpMesage = "Shows the latest xkcd comic, or the one specified", usage = "xkcd [number]", - group = CommandGroup.FUN + group = CommandGroup.FUN, + allowAnywhere = true ) { override fun handle(event: CommandMessage): CommandResult { val template = RestTemplateBuilder().build() diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 268492c..4a56d81 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -8,4 +8,4 @@ spring.jpa.generate-ddl=true spring.jpa.hibernate.ddl-auto=create-drop spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=true -ottobot.version=1.6 \ No newline at end of file +ottobot.version=1.7 \ No newline at end of file