mirror of
https://github.com/Eyre-S/Coeur-Morny-Cono.git
synced 2025-04-29 09:32:04 +08:00
update scala to 3.6.4 (from 3.4)
This commit is contained in:
parent
4bb9ab38c0
commit
385cb8db55
@ -1,7 +1,7 @@
|
||||
<component name="ProjectRunConfigurationManager">
|
||||
<configuration default="false" name="Morny CLI [pr]" type="Application" factoryName="Application">
|
||||
<option name="MAIN_CLASS_NAME" value="cc.sukazyo.cono.morny.MornyCLI" />
|
||||
<module name="Coeur Morny Cono.Morny Coeur" />
|
||||
<module name="Coeur Morny Cono.Morny Coeur.test" />
|
||||
<option name="WORKING_DIRECTORY" value="$ProjectFileDir$/run" />
|
||||
<extension name="coverage">
|
||||
<pattern>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<option value="$PROJECT_DIR$/.run/debug.env" />
|
||||
</option>
|
||||
<option name="MAIN_CLASS_NAME" value="cc.sukazyo.cono.morny.core.ServerMain" />
|
||||
<module name="Coeur Morny Cono.Morny Coeur" />
|
||||
<module name="Coeur Morny Cono.Morny Core.main" />
|
||||
<option name="PROGRAM_PARAMETERS" value="--quiet --debug -t --username sukazyo_deving_bot --master 793274677 --trusted-chat -1 --auto-cmd --outdated-ignore --trusted-reader-dinner 1040613596 --report-to 793274677 -medc 793274677 -medt 0,2,18,19 -medtz 8 --dinner-chat -1001670950261" />
|
||||
<option name="WORKING_DIRECTORY" value="$ProjectFileDir$/run" />
|
||||
<extension name="coverage">
|
||||
|
@ -4,7 +4,7 @@
|
||||
<option value="$PROJECT_DIR$/.run/debug.env" />
|
||||
</option>
|
||||
<option name="MAIN_CLASS_NAME" value="cc.sukazyo.cono.morny.core.ServerMain" />
|
||||
<module name="Coeur Morny Cono.Morny Coeur" />
|
||||
<module name="Coeur Morny Cono.Morny Core.main" />
|
||||
<option name="PROGRAM_PARAMETERS" value="--quiet --debug --username sukazyo_deving_bot --master 793274677 --trusted-chat -1 --outdated-ignore --trusted-reader-dinner 1040613596 -medc 793274677 -medtz 8 --dinner-chat -1001670950261" />
|
||||
<option name="VM_PARAMETERS" value="-Djava.net.useSystemProxies=true" />
|
||||
<option name="WORKING_DIRECTORY" value="$ProjectFileDir$/run" />
|
||||
|
@ -4,7 +4,7 @@
|
||||
<option value="$PROJECT_DIR$/.run/debug.env" />
|
||||
</option>
|
||||
<option name="MAIN_CLASS_NAME" value="cc.sukazyo.cono.morny.core.ServerMain" />
|
||||
<module name="Coeur Morny Cono.Morny Coeur" />
|
||||
<module name="Coeur Morny Cono.Morny Core.main" />
|
||||
<option name="PROGRAM_PARAMETERS" value="--quiet --debug --username sukazyo_deving_bot --master 793274677 --trusted-chat -1 --auto-cmd --outdated-ignore --trusted-reader-dinner 1040613596 --report-to 793274677 -medc 793274677 -medt 0,2,18,19 -medtz 8 --dinner-chat -1001670950261" />
|
||||
<option name="WORKING_DIRECTORY" value="$ProjectFileDir$/run" />
|
||||
<extension name="coverage">
|
||||
|
@ -1,6 +1,6 @@
|
||||
<component name="ProjectRunConfigurationManager">
|
||||
<configuration default="false" name="MornyTests #ALL" type="ScalaTestRunConfiguration" factoryName="ScalaTest" singleton="false" show_console_on_std_err="false" show_console_on_std_out="false">
|
||||
<module name="Coeur Morny Cono" />
|
||||
<module name="Coeur Morny Cono.test" />
|
||||
<option name="VMParameters" value="" />
|
||||
<option name="allowRunningInParallel" value="true" />
|
||||
<option name="alternativeJrePath" />
|
||||
@ -8,6 +8,9 @@
|
||||
<option name="classpathModifications">
|
||||
<list />
|
||||
</option>
|
||||
<option name="envFilePaths">
|
||||
<list />
|
||||
</option>
|
||||
<option name="envs">
|
||||
<map />
|
||||
</option>
|
||||
|
@ -1,7 +1,7 @@
|
||||
<component name="ProjectRunConfigurationManager">
|
||||
<configuration default="false" name="ServerMain [only-hello]" type="Application" factoryName="Application">
|
||||
<option name="MAIN_CLASS_NAME" value="cc.sukazyo.cono.morny.core.ServerMain" />
|
||||
<module name="Coeur Morny Cono.Morny Coeur" />
|
||||
<module name="Coeur Morny Cono.Morny Core.main" />
|
||||
<option name="PROGRAM_PARAMETERS" value="--only-hello" />
|
||||
<option name="WORKING_DIRECTORY" value="$ProjectFileDir$/run" />
|
||||
<extension name="coverage">
|
||||
|
@ -1,7 +1,7 @@
|
||||
<component name="ProjectRunConfigurationManager">
|
||||
<configuration default="false" name="ServerMain [version]" type="Application" factoryName="Application">
|
||||
<option name="MAIN_CLASS_NAME" value="cc.sukazyo.cono.morny.core.ServerMain" />
|
||||
<module name="Coeur Morny Cono.Morny Coeur" />
|
||||
<module name="Coeur Morny Cono.Morny Core.main" />
|
||||
<option name="PROGRAM_PARAMETERS" value="--version" />
|
||||
<option name="WORKING_DIRECTORY" value="$ProjectFileDir$/run" />
|
||||
<extension name="coverage">
|
||||
|
@ -7,7 +7,7 @@ ThisBuild / organizationName := MornyProject.group_name
|
||||
|
||||
ThisBuild / version := MornyProject.version
|
||||
|
||||
ThisBuild / scalaVersion := "3.4.1"
|
||||
ThisBuild / scalaVersion := "3.6.4"
|
||||
|
||||
ThisBuild / resolvers ++= Seq(
|
||||
"-ws-releases" at "https://mvn.sukazyo.cc/releases",
|
||||
@ -34,7 +34,8 @@ artifactName := {(sv: ScalaVersion, module: ModuleID, artifact: Artifact) =>
|
||||
|
||||
ThisBuild / scalacOptions ++= Seq(
|
||||
"-language:postfixOps",
|
||||
"-encoding", MornyProject.source_encoding
|
||||
"-encoding", MornyProject.source_encoding,
|
||||
"-feature"
|
||||
)
|
||||
ThisBuild / javacOptions ++= Seq(
|
||||
"-encoding", MornyProject.source_encoding,
|
||||
|
@ -20,7 +20,9 @@ class OnQuestionMarkReply (using coeur: MornyCoeur) extends EventListener {
|
||||
|
||||
import cc.sukazyo.cono.morny.util.UseMath.over
|
||||
import cc.sukazyo.cono.morny.util.UseRandom.chance_is
|
||||
if (1 over 8) chance_is false then return;
|
||||
|
||||
import scala.language.implicitConversions
|
||||
if 7 over 8 chance_is true then return;
|
||||
if !isAllMessageMark(using update.message.text) then return;
|
||||
|
||||
SendMessage(
|
||||
|
@ -9,6 +9,8 @@ import com.pengrad.telegrambot.model.Update
|
||||
import com.pengrad.telegrambot.request.SendMessage
|
||||
import com.pengrad.telegrambot.TelegramBot
|
||||
|
||||
import scala.language.implicitConversions
|
||||
|
||||
//noinspection NonAsciiCharacters
|
||||
class 私わね (using coeur: MornyCoeur) extends ISimpleCommand {
|
||||
private given TelegramBot = coeur.account
|
||||
|
@ -44,6 +44,7 @@ object MessageThread {
|
||||
(using _cxt: MessagingContext.WithUserAndMessage)
|
||||
(_callback: Callback)
|
||||
: MessageThread[Unit] = new MessageThread[Unit] {
|
||||
import scala.language.implicitConversions
|
||||
override val starterContext: MessagingContext.WithUserAndMessage = _cxt
|
||||
override val passingData: Unit = ()
|
||||
override val callback: CallbackParameterized[Unit] = _callback
|
||||
|
@ -121,7 +121,7 @@ class Scheduler (isDaemon: Boolean = false) {
|
||||
case next: EpochMillis =>
|
||||
routine.currentScheduledTimeMillis = Some(next)
|
||||
schedule(routine)
|
||||
case _ =>
|
||||
case null =>
|
||||
case _ =>
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user