diff --git a/src/main/kotlin/nl/voidcorp/discord/command/CommandMessage.kt b/src/main/kotlin/nl/voidcorp/discord/command/CommandMessage.kt index dbc785f..5a81a03 100644 --- a/src/main/kotlin/nl/voidcorp/discord/command/CommandMessage.kt +++ b/src/main/kotlin/nl/voidcorp/discord/command/CommandMessage.kt @@ -17,7 +17,8 @@ data class CommandMessage( fun reply(message: String) = - MessageBuilder(message).buildAll(MessageBuilder.SplitPolicy.SPACE).forEach { reply(it) } + MessageBuilder(message).apply { this.replace("@here", "@hеre").replace("@everyone", "@еveryone") } + .buildAll(MessageBuilder.SplitPolicy.SPACE).forEach { reply(it) } fun reply(messageEmbed: MessageEmbed) = event.channel.sendMessage(messageEmbed).queue() diff --git a/src/main/kotlin/nl/voidcorp/discord/commands/management/SetVerifiedCommand.kt b/src/main/kotlin/nl/voidcorp/discord/commands/management/SetVerifiedCommand.kt index e476576..c18b323 100644 --- a/src/main/kotlin/nl/voidcorp/discord/commands/management/SetVerifiedCommand.kt +++ b/src/main/kotlin/nl/voidcorp/discord/commands/management/SetVerifiedCommand.kt @@ -5,7 +5,7 @@ import nl.voidcorp.discord.storage.GuildStore import org.springframework.stereotype.Service @Service -class SetVerifiedCommand : Command("verify", location = CommandSource.GUILD, commandLevel = CommandLevel.ADMIN) { +class SetVerifiedCommand : Command("verify", location = CommandSource.GUILD, commandLevel = CommandLevel.ADMIN, group = CommandGroup.ADMIN) { override fun handle(event: CommandMessage): CommandResult { val store = repo.findByGuildId(event.guild!!.idLong) ?: GuildStore(event.guild.idLong) store.defaultVerified = !store.defaultVerified diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 526416d..2ea6e81 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.4 \ No newline at end of file +ottobot.version=1.5 \ No newline at end of file