Merge branch 'xkcdfix' into 'master'

Make XKCD command allowed everywhere

See merge request jdejeu/ottobotv2!11
This commit is contained in:
Julius 2019-08-28 17:52:14 +00:00
commit 704341bfe3
2 changed files with 3 additions and 2 deletions

View file

@ -16,7 +16,8 @@ class XKXDComicCommand : Command(
"xkcd", "xkcd",
helpMesage = "Shows the latest xkcd comic, or the one specified", helpMesage = "Shows the latest xkcd comic, or the one specified",
usage = "xkcd [number]", usage = "xkcd [number]",
group = CommandGroup.FUN group = CommandGroup.FUN,
allowAnywhere = true
) { ) {
override fun handle(event: CommandMessage): CommandResult { override fun handle(event: CommandMessage): CommandResult {
val template = RestTemplateBuilder().build() val template = RestTemplateBuilder().build()

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.6 ottobot.version=1.7