use serverName instead of host:port for console i guess

This commit is contained in:
Chayapak 2023-04-23 11:15:21 +07:00
parent 8bd6379bcd
commit 188b3e9e30
2 changed files with 15 additions and 13 deletions

View file

@ -4,7 +4,9 @@
<option name="autoReloadType" value="SELECTIVE" /> <option name="autoReloadType" value="SELECTIVE" />
</component> </component>
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="50f184fa-7bed-4956-baf5-7586ff26ea08" name="Changes" comment="improve bot options? mabe mabe" /> <list default="true" id="50f184fa-7bed-4956-baf5-7586ff26ea08" name="Changes" comment="put the setter back">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" /> <option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" /> <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
@ -47,7 +49,7 @@
"RunOnceActivity.ShowReadmeOnStart": "true", "RunOnceActivity.ShowReadmeOnStart": "true",
"git-widget-placeholder": "master", "git-widget-placeholder": "master",
"jdk.selected.JAVA_MODULE": "17", "jdk.selected.JAVA_MODULE": "17",
"last_opened_file_path": "/home/chayapak1/IdeaProjects/chomens-bot-java", "last_opened_file_path": "/home/chayapak1/IdeaProjects/CrackUtils",
"project.structure.last.edited": "Modules", "project.structure.last.edited": "Modules",
"project.structure.proportion": "0.0", "project.structure.proportion": "0.0",
"project.structure.side.proportion": "0.0", "project.structure.side.proportion": "0.0",
@ -95,13 +97,6 @@
<option name="presentableId" value="Default" /> <option name="presentableId" value="Default" />
<updated>1680245437032</updated> <updated>1680245437032</updated>
</task> </task>
<task id="LOCAL-00057" summary="bossbar manager actionbar and enabled">
<created>1681461700243</created>
<option name="number" value="00057" />
<option name="presentableId" value="LOCAL-00057" />
<option name="project" value="LOCAL" />
<updated>1681461700243</updated>
</task>
<task id="LOCAL-00058" summary="bossbar manager actionbar and enabled"> <task id="LOCAL-00058" summary="bossbar manager actionbar and enabled">
<created>1681535433129</created> <created>1681535433129</created>
<option name="number" value="00058" /> <option name="number" value="00058" />
@ -438,7 +433,14 @@
<option name="project" value="LOCAL" /> <option name="project" value="LOCAL" />
<updated>1682209455256</updated> <updated>1682209455256</updated>
</task> </task>
<option name="localTasksCounter" value="106" /> <task id="LOCAL-00106" summary="put the setter back">
<created>1682209891989</created>
<option name="number" value="00106" />
<option name="presentableId" value="LOCAL-00106" />
<option name="project" value="LOCAL" />
<updated>1682209891989</updated>
</task>
<option name="localTasksCounter" value="107" />
<servers /> <servers />
</component> </component>
<component name="Vcs.Log.Tabs.Properties"> <component name="Vcs.Log.Tabs.Properties">
@ -453,7 +455,6 @@
</option> </option>
</component> </component>
<component name="VcsManagerConfiguration"> <component name="VcsManagerConfiguration">
<MESSAGE value="what the fuck i commited the wrong file" />
<MESSAGE value="mabe" /> <MESSAGE value="mabe" />
<MESSAGE value="mess with the pitch correction again to fix the sus problem" /> <MESSAGE value="mess with the pitch correction again to fix the sus problem" />
<MESSAGE value="add a working (or not?) stereo to music" /> <MESSAGE value="add a working (or not?) stereo to music" />
@ -478,7 +479,8 @@
<MESSAGE value="fart?!?!?!" /> <MESSAGE value="fart?!?!?!" />
<MESSAGE value="probably lazy fix the sus" /> <MESSAGE value="probably lazy fix the sus" />
<MESSAGE value="improve bot options? mabe mabe" /> <MESSAGE value="improve bot options? mabe mabe" />
<option name="LAST_COMMIT_MESSAGE" value="improve bot options? mabe mabe" /> <MESSAGE value="put the setter back" />
<option name="LAST_COMMIT_MESSAGE" value="put the setter back" />
</component> </component>
<component name="XSLT-Support.FileAssociations.UIState"> <component name="XSLT-Support.FileAssociations.UIState">
<expand /> <expand />

View file

@ -48,7 +48,7 @@ public class LoggerPlugin extends ChatPlugin.ChatListener {
"[%s %s] [%s] %s", "[%s %s] [%s] %s",
Component.text(dateTime.format(dateTimeFormatter)).color(NamedTextColor.GRAY), Component.text(dateTime.format(dateTimeFormatter)).color(NamedTextColor.GRAY),
prefix, prefix,
Component.text(bot.host() + ":" + bot.port()).color(NamedTextColor.GRAY), Component.text(bot.options().serverName()).color(NamedTextColor.GRAY),
Component.text(_message).color(NamedTextColor.WHITE) Component.text(_message).color(NamedTextColor.WHITE)
).color(NamedTextColor.DARK_GRAY); ).color(NamedTextColor.DARK_GRAY);