From 7e8e66fcbb4410a96acd1ad2cc888c01533a1748 Mon Sep 17 00:00:00 2001 From: Eyre_S Date: Mon, 6 May 2024 17:12:52 +0800 Subject: [PATCH] deprecated ip186 (and command /ip /whois) --- gradle.properties | 2 +- .../cc/sukazyo/cono/morny/bot/command/IP186Query.scala | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index f6d390f..6a243e3 100644 --- a/gradle.properties +++ b/gradle.properties @@ -5,7 +5,7 @@ MORNY_ARCHIVE_NAME = morny-coeur MORNY_CODE_STORE = https://github.com/Eyre-S/Coeur-Morny-Cono MORNY_COMMIT_PATH = https://github.com/Eyre-S/Coeur-Morny-Cono/commit/%s -VERSION = 1.3.3 +VERSION = 1.3.4-dev1 USE_DELTA = false VERSION_DELTA = diff --git a/src/main/scala/cc/sukazyo/cono/morny/bot/command/IP186Query.scala b/src/main/scala/cc/sukazyo/cono/morny/bot/command/IP186Query.scala index 2b5795d..70d7918 100644 --- a/src/main/scala/cc/sukazyo/cono/morny/bot/command/IP186Query.scala +++ b/src/main/scala/cc/sukazyo/cono/morny/bot/command/IP186Query.scala @@ -31,6 +31,13 @@ class IP186Query (using coeur: MornyCoeur) { private def query (using event: Update, command: InputCommand): Unit = { + coeur.account exec SendMessage( + event.message.chat.id, + "🥺 This feature has been deprecated, due to the upstream service (https://ip.186526.xyz) has been gone for a long time." + ).replyToMessageId(event.message.messageId) + + return + val target: String|Null = if (command.args isEmpty) if event.message.replyToMessage eq null then null else event.message.replyToMessage.text