From e6b5fa5157a9a852589815114a66fddfbc193307 Mon Sep 17 00:00:00 2001 From: Eyre_S Date: Fri, 12 Jul 2024 17:25:12 +0800 Subject: [PATCH] basically separated morny-coeur and morny-system-lib project --- .run/Morny CLI [pr].run.xml | 2 +- ...[t][user_dev(env).u_q_c_r_m] [pr].run.xml | 2 +- ... Coeur [user_dev(env).u_q_c] [pr].run.xml | 2 +- ...ur [user_dev(env).u_q_c_r_m] [pr].run.xml | 2 +- .run/ServerMain [only-hello].run.xml | 2 +- .run/ServerMain [version].run.xml | 2 +- build.sbt | 113 ++++++++++------- morny-coeur/.gitignore | 3 + .../images/featured-image@0.5x.jpg | Bin .../morny-coeur/images/http-sekai-400.png | Bin .../morny-coeur/images/http-sekai-404.png | Bin .../morny-coeur/images/http-sekai-500.png | Bin .../morny-coeur/images/http-sekai-501.png | Bin .../morny-coeur/images/http-sekai-523.png | Bin .../assets/morny-coeur/langs/_index.hyl | 0 .../assets/morny-coeur/langs/en_us.hyt | 0 .../assets/morny-coeur/langs/zh_cn.hyt | 0 .../assets/morny-coeur/langs/zh_tw.hyt | 0 .../assets/morny-coeur/morny-coeur.identifier | 0 .../assets/morny-coeur/texts/server-hello.txt | 0 .../src}/main/resources/morny-modules.list | 0 .../cono/morny/call_me/ModuleCallMe.scala | 0 .../sukazyo/cono/morny/call_me/OnCallMe.scala | 10 +- .../cono/morny/call_me/OnCallMsgSend.scala | 8 +- .../cc/sukazyo/cono/morny/core/Log.scala | 0 .../sukazyo/cono/morny/core/MornyAbout.scala | 0 .../sukazyo/cono/morny/core/MornyCoeur.scala | 8 +- .../sukazyo/cono/morny/core/MornyConfig.java | 0 .../sukazyo/cono/morny/core/MornyLangs.scala | 0 .../sukazyo/cono/morny/core/MornyModule.scala | 0 .../sukazyo/cono/morny/core/MornySystem.scala | 2 +- .../cono/morny/core/MornyTrusted.scala | 4 +- .../sukazyo/cono/morny/core/ServerMain.scala | 0 .../morny/core/bot/api/BotExtension.scala | 0 .../core/bot/api/EventListenerManager.scala | 2 +- .../core/bot/api/MornyCommandManager.scala | 4 +- .../core/bot/api/MornyQueryManager.scala | 1 + .../core/bot/api/SimpleCommandManager.scala | 1 + .../core/bot/api/messages/ErrorMessage.scala | 0 .../core/bot/api/messages/MessageThread.scala | 4 +- .../bot/api/messages/MessagingContext.scala | 2 +- .../bot/api/messages/ThreadingManager.scala | 0 .../core/bot/command/DirectMsgClear.scala | 5 +- .../morny/core/bot/command/MornyHellos.scala | 10 +- .../core/bot/command/MornyInfoOnStart.scala | 5 +- .../core/bot/command/MornyInformation.scala | 7 +- .../bot/command/MornyInformationOlds.scala | 3 +- .../core/bot/command/MornyManagers.scala | 10 +- .../core/bot/event/MornyOnInlineQuery.scala | 6 +- .../bot/event/MornyOnTelegramCommand.scala | 5 +- .../MornyOnUpdateTimestampOffsetLock.scala | 6 +- .../bot/internal/ErrorMessageManager.scala | 7 +- .../bot/internal/ThreadingManagerImpl.scala | 6 +- .../cono/morny/core/http/ServiceUI.scala | 0 .../cono/morny/core/http/api/HttpServer.scala | 0 .../morny/core/http/api/HttpService4Api.scala | 0 .../cono/morny/core/http/api/HttpStatus.scala | 0 .../http/api/MornyHttpServerContext.scala | 0 .../internal/MornyHttpServerContextImpl.scala | 0 .../cono/morny/core/http/services/Ping.scala | 0 .../morny/core/internal/BuildConfigField.java | 0 .../core/internal/MornyInternalModule.scala | 0 .../internal/logging/IMornyLogLevelImpl.scala | 0 .../logging/MornyFormatterConsole.scala | 0 .../internal/logging/MornyLogLevels.scala | 0 .../internal/logging/MornyLoggerBase.scala | 0 .../cono/morny/core/module/ModuleHelper.scala | 0 .../cono/morny/core/module/ModuleLoader.scala | 0 .../morny/core/module/ModulesJarLoader.scala | 0 .../cono/morny/crons/ModuleCRONs.scala | 0 .../cono/morny/crons/cmd/CommandCreate.scala | 5 +- .../sukazyo/cono/morny/data/MornyAssets.scala | 0 .../cono/morny/data/MornyInformation.scala | 0 .../cono/morny/data/TelegramImages.scala | 0 .../cono/morny/data/TelegramStickers.java | 0 .../cono/morny/encrypt_tool/Encryptor.scala | 17 ++- .../morny/encrypt_tool/ModuleEncryptor.scala | 0 .../sukazyo/cono/morny/ip186/BotCommand.scala | 7 +- .../cono/morny/ip186/IP186QueryHandler.scala | 0 .../cono/morny/ip186/IP186Response.scala | 0 .../cono/morny/ip186/ModuleIP186.scala | 0 .../medication_timer/MedicationTimer.scala | 4 +- .../ModuleMedicationTimer.scala | 0 .../OnMedicationNotifyApply.scala | 2 +- .../morny/morny_misc/ModuleMornyMisc.scala | 0 .../cono/morny/morny_misc/MornyJrrp.scala | 6 +- .../cono/morny/morny_misc/MornyOldJrrp.scala | 9 +- .../cono/morny/morny_misc/Testing.scala | 5 +- .../cono/morny/nbnhhsh/CommandNbnhhsh.scala | 7 +- .../cono/morny/nbnhhsh/ModuleNbnhhsh.scala | 0 .../cono/morny/nbnhhsh/NbnhhshQuery.scala | 0 .../randomize_somthing/ModuleRandomize.scala | 0 .../OnQuestionMarkReply.scala | 4 +- .../randomize_somthing/OnUserRandom.scala | 4 +- .../sukazyo/cono/morny/reporter/Module.scala | 0 .../cono/morny/reporter/MornyReport.scala | 21 ++- .../slash_action/ModuleSlashAction.scala | 0 .../slash_action/OnUserSlashAction.scala | 10 +- .../social_share/ModuleSocialShare.scala | 0 .../social_share/api/SocialContent.scala | 6 +- .../api/SocialTwitterParser.scala | 2 +- .../social_share/api/SocialWeiboParser.scala | 2 +- .../social_share/command/GetSocial.scala | 7 +- .../social_share/event/OnGetSocial.scala | 6 +- .../external/bilibili/BiliTool.scala | 0 .../external/bilibili/BilibiliForms.scala | 0 .../social_share/external/twitter/FXApi.scala | 0 .../external/twitter/FXAuthor.scala | 0 .../external/twitter/FXExternalMedia.scala | 0 .../external/twitter/FXMosaicPhoto.scala | 0 .../external/twitter/FXPhoto.scala | 0 .../external/twitter/FXPool.scala | 0 .../external/twitter/FXPoolChoice.scala | 0 .../external/twitter/FXTranslate.scala | 0 .../external/twitter/FXTweet.scala | 2 +- .../external/twitter/FXVideo.scala | 0 .../external/twitter/package.scala | 0 .../social_share/external/weibo/MApi.scala | 0 .../social_share/external/weibo/MPic.scala | 0 .../social_share/external/weibo/MStatus.scala | 0 .../social_share/external/weibo/MUser.scala | 0 .../social_share/external/weibo/package.scala | 0 .../query/ShareToolBilibili.scala | 4 +- .../query/ShareToolSocialContent.scala | 2 +- .../social_share/query/ShareToolTwitter.scala | 4 +- .../cono/morny/stickers_get/Module.scala | 0 .../cono/morny/stickers_get/StickerType.scala | 0 .../stickers_get/http/StickerService.scala | 4 +- .../cono/morny/tele_utils/InlineRawText.scala | 4 +- .../morny/tele_utils/ModuleTeleUtils.scala | 0 .../event_hack/CommandEventHack.scala | 5 +- .../tele_utils/event_hack/EventHacker.scala | 4 +- .../event_hack/HackerEventHandler.scala | 4 +- .../tele_utils/user_info/CommandGetUser.scala | 11 +- .../user_info/InlineMyInformation.scala | 9 +- .../uni_meow/BotEventUniMeowTrigger.scala | 4 +- .../cono/morny/uni_meow/ModuleUniMeow.scala | 0 .../uni_meow/UniMeowCommandManager.scala | 0 .../cc/sukazyo/cono/morny/uni_meow/创.scala | 5 +- .../cc/sukazyo/cono/morny/uni_meow/喵呜.scala | 5 +- .../sukazyo/cono/morny/uni_meow/私わね.scala | 5 +- .../cono/morny/util/CommonFormat.scala | 2 +- .../sukazyo/cono/morny/util/FileUtils.scala | 2 +- .../cono/morny/util/StringEnsure.scala | 0 .../sukazyo/cono/morny/util/SttpPublic.scala | 0 .../cc/sukazyo/cono/morny/util/UseMath.scala | 0 .../sukazyo/cono/morny/util/UseRandom.scala | 2 +- .../sukazyo/cono/morny/util/UseSelect.scala | 0 .../sukazyo/cono/morny/util/UseString.scala | 0 .../cono/morny/util/UseThrowable.scala | 0 .../cono/morny/util/dataview/Table.scala | 0 .../cono/morny/util/hytrans/Definitions.scala | 0 .../cono/morny/util/hytrans/LangTag.scala | 0 .../morny/util/hytrans/LanguageTree.scala | 0 .../cono/morny/util/hytrans/Parser.scala | 0 .../morny/util/hytrans/Translations.scala | 0 .../cc/sukazyo/cono/morny/util/package.scala | 0 .../cono/morny/util/schedule/CronTask.scala | 2 +- .../morny/util/schedule/DelayedTask.scala | 2 +- .../morny/util/schedule/IntervalTask.scala | 2 +- .../util/schedule/IntervalWithTimesTask.scala | 2 +- .../morny/util/schedule/RoutineTask.scala | 2 +- .../cono/morny/util/schedule/Scheduler.scala | 2 +- .../cono/morny/util/schedule/Task.scala | 2 +- .../util/statistics/NumericStatistics.scala | 0 .../morny/util/statistics/UniqueCounter.scala | 0 .../cono/morny/util/time/WatchDog.scala | 2 +- .../cono/morny/util/var_text/VTNode.scala | 0 .../morny/util/var_text/VTNodeLiteral.scala | 0 .../cono/morny/util/var_text/VTNodeVar.scala | 0 .../cono/morny/util/var_text/Var.scala | 0 .../cono/morny/util/var_text/VarText.scala | 0 .../test/resources/assets_morny_tests/md5.gif | Bin .../src}/test/scala/.gitignore | 0 .../cc/sukazyo/cono/morny/MornyCLI.scala | 2 +- .../sukazyo/cono/morny/test/MornyTests.scala | 0 .../bot/event/OnQuestionMarkReplyTest.scala | 0 .../test/daemon/MedicationTimerTest.scala | 2 +- .../morny/test/extra/BilibiliFormsTest.scala | 0 .../morny/test/extra/twitter/FXApiTest.scala | 0 .../test/extra/twitter/PackageTest.scala | 0 .../cono/morny/test/utils/BiliToolTest.scala | 0 .../morny/test/utils/CommonEncryptTest.scala | 4 +- .../morny/test/utils/CommonFormatTest.scala | 0 .../morny/test/utils/ConvertByteHexTest.scala | 4 +- .../morny/test/utils/EpochDateTimeTest.scala | 2 +- .../test/utils/UniversalCommandTest.scala | 5 +- .../test/utils/schedule/CronTaskTest.scala | 0 .../test/utils/schedule/IntervalsTest.scala | 0 .../test/utils/schedule/SchedulerTest.scala | 0 .../test/utils/schedule/TaskBasicTest.scala | 0 .../test/utils/tgapi/InputCommandTest.scala | 2 +- .../tgapi/formatting/NamingUtilsTest.scala | 2 +- .../formatting/TelegramFormatterTest.scala | 0 .../formatting/TelegramParseEscapeTest.scala | 2 +- .../TelegramUserInformationTest.scala | 5 +- .../test/utils/var_text/VarTextTest.scala | 0 morny-system-lib/.gitignore | 3 + .../system/telegram_api/Standardize.scala | 13 ++ .../telegram_api}/TelegramExtensions.scala | 6 +- .../telegram_api/command}/ICommandAlias.scala | 2 +- .../command}/ISimpleCommand.scala | 4 +- .../command}/ITelegramCommand.scala | 2 +- .../telegram_api/command}/InputCommand.scala | 4 +- .../system/telegram_api/event}/EventEnv.scala | 6 +- .../telegram_api/event}/EventListener.scala | 2 +- .../event/EventRuntimeException.scala | 2 +- .../telegram_api/formatting/NamingUtils.scala | 11 ++ .../formatting/TelegramFormatter.scala | 8 +- .../formatting/TelegramParseEscape.scala | 2 +- .../formatting/TelegramUserInformation.scala | 12 +- .../inline_query}/ITelegramQuery.scala | 2 +- .../inline_query}/InlineQueryUnit.scala | 4 +- .../morny/system/telegram_api/package.scala | 4 + .../morny/system/utils}/CommonEncrypt.scala | 2 +- .../morny/system/utils}/ConvertByteHex.scala | 2 +- .../morny/system/utils}/EpochDateTime.scala | 2 +- .../morny/system/utils}/GivenContext.scala | 4 +- .../system/utils}/UniversalCommand.scala | 2 +- .../cono/morny/system/utils}/UseStacks.scala | 2 +- project/MornyConfiguration.scala | 120 +++++++++++++----- project/MornyProject.scala | 13 +- .../cono/morny/util/tgapi/Standardize.scala | 15 --- .../util/tgapi/formatting/NamingUtils.scala | 11 -- .../cono/morny/util/tgapi/package.scala | 4 - 225 files changed, 415 insertions(+), 341 deletions(-) create mode 100644 morny-coeur/.gitignore rename {src => morny-coeur/src}/main/resources/assets/morny-coeur/images/featured-image@0.5x.jpg (100%) rename {src => morny-coeur/src}/main/resources/assets/morny-coeur/images/http-sekai-400.png (100%) rename {src => morny-coeur/src}/main/resources/assets/morny-coeur/images/http-sekai-404.png (100%) rename {src => morny-coeur/src}/main/resources/assets/morny-coeur/images/http-sekai-500.png (100%) rename {src => morny-coeur/src}/main/resources/assets/morny-coeur/images/http-sekai-501.png (100%) rename {src => morny-coeur/src}/main/resources/assets/morny-coeur/images/http-sekai-523.png (100%) rename {src => morny-coeur/src}/main/resources/assets/morny-coeur/langs/_index.hyl (100%) rename {src => morny-coeur/src}/main/resources/assets/morny-coeur/langs/en_us.hyt (100%) rename {src => morny-coeur/src}/main/resources/assets/morny-coeur/langs/zh_cn.hyt (100%) rename {src => morny-coeur/src}/main/resources/assets/morny-coeur/langs/zh_tw.hyt (100%) rename {src => morny-coeur/src}/main/resources/assets/morny-coeur/morny-coeur.identifier (100%) rename {src => morny-coeur/src}/main/resources/assets/morny-coeur/texts/server-hello.txt (100%) rename {src => morny-coeur/src}/main/resources/morny-modules.list (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/call_me/ModuleCallMe.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/call_me/OnCallMe.scala (89%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/call_me/OnCallMsgSend.scala (94%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/core/Log.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/core/MornyAbout.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/core/MornyCoeur.scala (98%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/core/MornyConfig.java (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/core/MornyLangs.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/core/MornyModule.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/core/MornySystem.scala (98%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/core/MornyTrusted.scala (90%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/core/ServerMain.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/core/bot/api/BotExtension.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/core/bot/api/EventListenerManager.scala (97%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/core/bot/api/MornyCommandManager.scala (92%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/core/bot/api/MornyQueryManager.scala (88%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/core/bot/api/SimpleCommandManager.scala (89%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/core/bot/api/messages/ErrorMessage.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/core/bot/api/messages/MessageThread.scala (93%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/core/bot/api/messages/MessagingContext.scala (97%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/core/bot/api/messages/ThreadingManager.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/core/bot/command/DirectMsgClear.scala (91%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/core/bot/command/MornyHellos.scala (81%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/core/bot/command/MornyInfoOnStart.scala (82%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/core/bot/command/MornyInformation.scala (96%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/core/bot/command/MornyInformationOlds.scala (82%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/core/bot/command/MornyManagers.scala (88%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/core/bot/event/MornyOnInlineQuery.scala (80%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/core/bot/event/MornyOnTelegramCommand.scala (84%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/core/bot/event/MornyOnUpdateTimestampOffsetLock.scala (75%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/core/bot/internal/ErrorMessageManager.scala (94%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/core/bot/internal/ThreadingManagerImpl.scala (94%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/core/http/ServiceUI.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/core/http/api/HttpServer.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/core/http/api/HttpService4Api.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/core/http/api/HttpStatus.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/core/http/api/MornyHttpServerContext.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/core/http/internal/MornyHttpServerContextImpl.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/core/http/services/Ping.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/core/internal/BuildConfigField.java (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/core/internal/MornyInternalModule.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/core/internal/logging/IMornyLogLevelImpl.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/core/internal/logging/MornyFormatterConsole.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/core/internal/logging/MornyLogLevels.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/core/internal/logging/MornyLoggerBase.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/core/module/ModuleHelper.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/core/module/ModuleLoader.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/core/module/ModulesJarLoader.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/crons/ModuleCRONs.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/crons/cmd/CommandCreate.scala (92%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/data/MornyAssets.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/data/MornyInformation.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/data/TelegramImages.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/data/TelegramStickers.java (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/encrypt_tool/Encryptor.scala (94%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/encrypt_tool/ModuleEncryptor.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/ip186/BotCommand.scala (89%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/ip186/IP186QueryHandler.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/ip186/IP186Response.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/ip186/ModuleIP186.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/medication_timer/MedicationTimer.scala (96%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/medication_timer/ModuleMedicationTimer.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/medication_timer/OnMedicationNotifyApply.scala (89%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/morny_misc/ModuleMornyMisc.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/morny_misc/MornyJrrp.scala (69%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/morny_misc/MornyOldJrrp.scala (75%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/morny_misc/Testing.scala (91%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/nbnhhsh/CommandNbnhhsh.scala (90%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/nbnhhsh/ModuleNbnhhsh.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/nbnhhsh/NbnhhshQuery.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/randomize_somthing/ModuleRandomize.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/randomize_somthing/OnQuestionMarkReply.scala (88%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/randomize_somthing/OnUserRandom.scala (92%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/reporter/Module.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/reporter/MornyReport.scala (92%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/slash_action/ModuleSlashAction.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/slash_action/OnUserSlashAction.scala (84%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/social_share/ModuleSocialShare.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/social_share/api/SocialContent.scala (94%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/social_share/api/SocialTwitterParser.scala (96%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/social_share/api/SocialWeiboParser.scala (94%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/social_share/command/GetSocial.scala (81%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/social_share/event/OnGetSocial.scala (94%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/social_share/external/bilibili/BiliTool.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/social_share/external/bilibili/BilibiliForms.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/social_share/external/twitter/FXApi.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/social_share/external/twitter/FXAuthor.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/social_share/external/twitter/FXExternalMedia.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/social_share/external/twitter/FXMosaicPhoto.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/social_share/external/twitter/FXPhoto.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/social_share/external/twitter/FXPool.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/social_share/external/twitter/FXPoolChoice.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/social_share/external/twitter/FXTranslate.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/social_share/external/twitter/FXTweet.scala (97%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/social_share/external/twitter/FXVideo.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/social_share/external/twitter/package.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/social_share/external/weibo/MApi.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/social_share/external/weibo/MPic.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/social_share/external/weibo/MStatus.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/social_share/external/weibo/MUser.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/social_share/external/weibo/package.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/social_share/query/ShareToolBilibili.scala (92%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/social_share/query/ShareToolSocialContent.scala (94%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/social_share/query/ShareToolTwitter.scala (87%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/stickers_get/Module.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/stickers_get/StickerType.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/stickers_get/http/StickerService.scala (91%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/tele_utils/InlineRawText.scala (79%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/tele_utils/ModuleTeleUtils.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/tele_utils/event_hack/CommandEventHack.scala (88%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/tele_utils/event_hack/EventHacker.scala (90%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/tele_utils/event_hack/HackerEventHandler.scala (76%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/tele_utils/user_info/CommandGetUser.scala (80%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/tele_utils/user_info/InlineMyInformation.scala (69%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/uni_meow/BotEventUniMeowTrigger.scala (82%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/uni_meow/ModuleUniMeow.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/uni_meow/UniMeowCommandManager.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/uni_meow/创.scala (92%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/uni_meow/喵呜.scala (91%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/uni_meow/私わね.scala (79%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/util/CommonFormat.scala (97%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/util/FileUtils.scala (90%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/util/StringEnsure.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/util/SttpPublic.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/util/UseMath.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/util/UseRandom.scala (92%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/util/UseSelect.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/util/UseString.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/util/UseThrowable.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/util/dataview/Table.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/util/hytrans/Definitions.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/util/hytrans/LangTag.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/util/hytrans/LanguageTree.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/util/hytrans/Parser.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/util/hytrans/Translations.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/util/package.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/util/schedule/CronTask.scala (94%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/util/schedule/DelayedTask.scala (83%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/util/schedule/IntervalTask.scala (88%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/util/schedule/IntervalWithTimesTask.scala (90%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/util/schedule/RoutineTask.scala (96%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/util/schedule/Scheduler.scala (99%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/util/schedule/Task.scala (96%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/util/statistics/NumericStatistics.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/util/statistics/UniqueCounter.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/util/time/WatchDog.scala (96%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/util/var_text/VTNode.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/util/var_text/VTNodeLiteral.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/util/var_text/VTNodeVar.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/util/var_text/Var.scala (100%) rename {src => morny-coeur/src}/main/scala/cc/sukazyo/cono/morny/util/var_text/VarText.scala (100%) rename {src => morny-coeur/src}/test/resources/assets_morny_tests/md5.gif (100%) rename {src => morny-coeur/src}/test/scala/.gitignore (100%) rename {src => morny-coeur/src}/test/scala/cc/sukazyo/cono/morny/MornyCLI.scala (81%) rename {src => morny-coeur/src}/test/scala/cc/sukazyo/cono/morny/test/MornyTests.scala (100%) rename {src => morny-coeur/src}/test/scala/cc/sukazyo/cono/morny/test/bot/event/OnQuestionMarkReplyTest.scala (100%) rename {src => morny-coeur/src}/test/scala/cc/sukazyo/cono/morny/test/daemon/MedicationTimerTest.scala (96%) rename {src => morny-coeur/src}/test/scala/cc/sukazyo/cono/morny/test/extra/BilibiliFormsTest.scala (100%) rename {src => morny-coeur/src}/test/scala/cc/sukazyo/cono/morny/test/extra/twitter/FXApiTest.scala (100%) rename {src => morny-coeur/src}/test/scala/cc/sukazyo/cono/morny/test/extra/twitter/PackageTest.scala (100%) rename {src => morny-coeur/src}/test/scala/cc/sukazyo/cono/morny/test/utils/BiliToolTest.scala (100%) rename {src => morny-coeur/src}/test/scala/cc/sukazyo/cono/morny/test/utils/CommonEncryptTest.scala (95%) rename {src => morny-coeur/src}/test/scala/cc/sukazyo/cono/morny/test/utils/CommonFormatTest.scala (100%) rename {src => morny-coeur/src}/test/scala/cc/sukazyo/cono/morny/test/utils/ConvertByteHexTest.scala (90%) rename {src => morny-coeur/src}/test/scala/cc/sukazyo/cono/morny/test/utils/EpochDateTimeTest.scala (95%) rename {src => morny-coeur/src}/test/scala/cc/sukazyo/cono/morny/test/utils/UniversalCommandTest.scala (97%) rename {src => morny-coeur/src}/test/scala/cc/sukazyo/cono/morny/test/utils/schedule/CronTaskTest.scala (100%) rename {src => morny-coeur/src}/test/scala/cc/sukazyo/cono/morny/test/utils/schedule/IntervalsTest.scala (100%) rename {src => morny-coeur/src}/test/scala/cc/sukazyo/cono/morny/test/utils/schedule/SchedulerTest.scala (100%) rename {src => morny-coeur/src}/test/scala/cc/sukazyo/cono/morny/test/utils/schedule/TaskBasicTest.scala (100%) rename {src => morny-coeur/src}/test/scala/cc/sukazyo/cono/morny/test/utils/tgapi/InputCommandTest.scala (95%) rename {src => morny-coeur/src}/test/scala/cc/sukazyo/cono/morny/test/utils/tgapi/formatting/NamingUtilsTest.scala (95%) rename {src => morny-coeur/src}/test/scala/cc/sukazyo/cono/morny/test/utils/tgapi/formatting/TelegramFormatterTest.scala (100%) rename {src => morny-coeur/src}/test/scala/cc/sukazyo/cono/morny/test/utils/tgapi/formatting/TelegramParseEscapeTest.scala (88%) rename {src => morny-coeur/src}/test/scala/cc/sukazyo/cono/morny/test/utils/tgapi/formatting/TelegramUserInformationTest.scala (74%) rename {src => morny-coeur/src}/test/scala/cc/sukazyo/cono/morny/test/utils/var_text/VarTextTest.scala (100%) create mode 100644 morny-system-lib/.gitignore create mode 100644 morny-system-lib/src/main/scala/cc/sukazyo/cono/morny/system/telegram_api/Standardize.scala rename {src/main/scala/cc/sukazyo/cono/morny/util/tgapi => morny-system-lib/src/main/scala/cc/sukazyo/cono/morny/system/telegram_api}/TelegramExtensions.scala (98%) rename {src/main/scala/cc/sukazyo/cono/morny/core/bot/api => morny-system-lib/src/main/scala/cc/sukazyo/cono/morny/system/telegram_api/command}/ICommandAlias.scala (95%) rename {src/main/scala/cc/sukazyo/cono/morny/core/bot/api => morny-system-lib/src/main/scala/cc/sukazyo/cono/morny/system/telegram_api/command}/ISimpleCommand.scala (89%) rename {src/main/scala/cc/sukazyo/cono/morny/core/bot/api => morny-system-lib/src/main/scala/cc/sukazyo/cono/morny/system/telegram_api/command}/ITelegramCommand.scala (91%) rename {src/main/scala/cc/sukazyo/cono/morny/util/tgapi => morny-system-lib/src/main/scala/cc/sukazyo/cono/morny/system/telegram_api/command}/InputCommand.scala (84%) rename {src/main/scala/cc/sukazyo/cono/morny/core/bot/api => morny-system-lib/src/main/scala/cc/sukazyo/cono/morny/system/telegram_api/event}/EventEnv.scala (93%) rename {src/main/scala/cc/sukazyo/cono/morny/core/bot/api => morny-system-lib/src/main/scala/cc/sukazyo/cono/morny/system/telegram_api/event}/EventListener.scala (97%) rename {src/main/scala/cc/sukazyo/cono/morny/util/tgapi => morny-system-lib/src/main/scala/cc/sukazyo/cono/morny/system/telegram_api}/event/EventRuntimeException.scala (94%) create mode 100644 morny-system-lib/src/main/scala/cc/sukazyo/cono/morny/system/telegram_api/formatting/NamingUtils.scala rename {src/main/scala/cc/sukazyo/cono/morny/util/tgapi => morny-system-lib/src/main/scala/cc/sukazyo/cono/morny/system/telegram_api}/formatting/TelegramFormatter.scala (88%) rename {src/main/scala/cc/sukazyo/cono/morny/util/tgapi => morny-system-lib/src/main/scala/cc/sukazyo/cono/morny/system/telegram_api}/formatting/TelegramParseEscape.scala (98%) rename {src/main/scala/cc/sukazyo/cono/morny/util/tgapi => morny-system-lib/src/main/scala/cc/sukazyo/cono/morny/system/telegram_api}/formatting/TelegramUserInformation.scala (79%) rename {src/main/scala/cc/sukazyo/cono/morny/core/bot/api => morny-system-lib/src/main/scala/cc/sukazyo/cono/morny/system/telegram_api/inline_query}/ITelegramQuery.scala (68%) rename {src/main/scala/cc/sukazyo/cono/morny/core/bot/api => morny-system-lib/src/main/scala/cc/sukazyo/cono/morny/system/telegram_api/inline_query}/InlineQueryUnit.scala (76%) create mode 100644 morny-system-lib/src/main/scala/cc/sukazyo/cono/morny/system/telegram_api/package.scala rename {src/main/scala/cc/sukazyo/cono/morny/util => morny-system-lib/src/main/scala/cc/sukazyo/cono/morny/system/utils}/CommonEncrypt.scala (99%) rename {src/main/scala/cc/sukazyo/cono/morny/util => morny-system-lib/src/main/scala/cc/sukazyo/cono/morny/system/utils}/ConvertByteHex.scala (97%) rename {src/main/scala/cc/sukazyo/cono/morny/util => morny-system-lib/src/main/scala/cc/sukazyo/cono/morny/system/utils}/EpochDateTime.scala (98%) rename {src/main/scala/cc/sukazyo/cono/morny/util => morny-system-lib/src/main/scala/cc/sukazyo/cono/morny/system/utils}/GivenContext.scala (97%) rename {src/main/scala/cc/sukazyo/cono/morny/util => morny-system-lib/src/main/scala/cc/sukazyo/cono/morny/system/utils}/UniversalCommand.scala (98%) rename {src/main/scala/cc/sukazyo/cono/morny/util => morny-system-lib/src/main/scala/cc/sukazyo/cono/morny/system/utils}/UseStacks.scala (91%) delete mode 100644 src/main/scala/cc/sukazyo/cono/morny/util/tgapi/Standardize.scala delete mode 100644 src/main/scala/cc/sukazyo/cono/morny/util/tgapi/formatting/NamingUtils.scala delete mode 100644 src/main/scala/cc/sukazyo/cono/morny/util/tgapi/package.scala diff --git a/.run/Morny CLI [pr].run.xml b/.run/Morny CLI [pr].run.xml index 05c90d9..920cd21 100644 --- a/.run/Morny CLI [pr].run.xml +++ b/.run/Morny CLI [pr].run.xml @@ -1,7 +1,7 @@