From bf314f5f91b5122ae2f256f35965fc331211dd65 Mon Sep 17 00:00:00 2001 From: Julius de Jeu Date: Sat, 14 Sep 2019 19:28:38 +0200 Subject: [PATCH 1/2] Add ATQ command, we want a question, not a request for a question --- .../discord/commands/general/ATQCommand.kt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/main/kotlin/nl/voidcorp/discord/commands/general/ATQCommand.kt diff --git a/src/main/kotlin/nl/voidcorp/discord/commands/general/ATQCommand.kt b/src/main/kotlin/nl/voidcorp/discord/commands/general/ATQCommand.kt new file mode 100644 index 0000000..6439258 --- /dev/null +++ b/src/main/kotlin/nl/voidcorp/discord/commands/general/ATQCommand.kt @@ -0,0 +1,15 @@ +package nl.voidcorp.discord.commands.general + +import nl.voidcorp.discord.command.Command +import nl.voidcorp.discord.command.CommandMessage +import nl.voidcorp.discord.command.CommandResult +import org.springframework.stereotype.Service + +@Service +class ATQCommand : + Command("answerthequestion", "Don't ask to ask, just ask!", "atq", allowAnywhere = true, aliases = listOf("atq")) { + override fun handle(event: CommandMessage): CommandResult { + event.reply("Don't ask to ask, just ask - https://i.imgur.com/93qXFd0.png") + return CommandResult.SUCCESS + } +} \ No newline at end of file From 41eea47b1d6f2d2b39b8c470773af97628861df8 Mon Sep 17 00:00:00 2001 From: Julius de Jeu Date: Sat, 14 Sep 2019 19:29:38 +0200 Subject: [PATCH 2/2] Bump version --- src/main/resources/application.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index a738684..913f657 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.8 \ No newline at end of file +ottobot.version=1.9 \ No newline at end of file