Parl は Palworld のゲームサーバーである PalServer-Linux を操作するコマンドを Discord サーバーに追加します。
/parl は、ゲームサーバーの起動、停止、状態確認を行えます。
/parl status: Palworld ゲームサーバーの状態を確認します。/parl start: Palworld ゲームサーバーを起動します。/parl stop: Palworld ゲームサーバーを停止します。
不意に停止したゲームサーバーの起動を Discord サーバーに参加しているメンバーに任せることができるようになります。
- Discord Developer Portal を開きます。
- 「New Application」 から Bot を作成します。
- Bot タブを開き、「Reset Token」から Token を発行し、控えます。
- 「PUBLIC BOT」のチェックを外します。
- OAuth2 > URL Generator から 招待 URL を作成します。
- SCOPES: bot, application.commands
- BOT PERMISSIONS: Send Messages, Embed Links
- 生成した URL へ遷移し、サーバーへ Bot を追加します。
git clone https://github.com/tabo-syu/parl.git && cd ./parlを実行します。cp .env.example .envを実行します。- 好きなエディタで
.envファイルを開き、各項目を埋めます。DISCORD_ICON_URL: 送信されるメッセージに付与される画像の URLDISCORD_TOKEN: 「Bot の作成」で控えた TokenRCON_HOST: ゲームサーバーの IP アドレスRCON_PORT:PalServer/Pal/Saved/Config/LinuxServer/PalWorldSettings.iniで設定したゲームサーバーのポート番号RCON_PASSWORD:PalServer/Pal/Saved/Config/LinuxServer/PalWorldSettings.iniで設定したパスワードSERVER_PATH:PalServer/PalServer.shのパス
screenを実行後、task runで Bot が起動します。Ctrl+a>dでセッションから抜けます。
Translated by DeepL.
Parl adds commands to the Discord server to control PalServer-Linux, Palworld's game server. /parl can start, stop, and check the status of the game server.
/parl status: Checks the status of the Palworld game server./parl start: Starts the Palworld game server./parl stop: Stop the Palworld game server.
This allows a member of the Discord server to start up a game server that has been stopped unexpectedly.
- Open the Discord Developer Portal.
- Create a Bot from "New Application".
- Open the Bot tab, issue a Token from "Reset Token", and copy the Token.
- Uncheck "PUBLIC BOT".
- Create an invitation URL from OAuth2 > URL Generator.
- SCOPES: bot, application.commands
- BOT PERMISSIONS: Send Messages, Embed Links
- Go to the generated URL and add the Bot to the server.
- Execute
git clone https://github.com/tabo-syu/parl.git && cd . /parl. - Execute
cp .env.example .env. - Open the .env file in your favorite editor and fill in each item.
DISCORD_ICON_URL: URL of the image to be attached to the message to be sent.DISCORD_TOKEN: The Token that you have taken down in the "Creating a Bot" section.RCON_HOST: IP address of the game serverRCON_PORT: Port number of the game server set inPalServer/Pal/Saved/Config/LinuxServer/PalWorldSettings.iniRCON_PASSWORD: Password set inPalServer/Pal/Saved/Config/LinuxServer/PalWorldSettings.iniSERVER_PATH: Path toPalServer/PalServer.sh
- After screen is executed,
task runwill start the Bot. Ctrl + a>dto exit from the session.