From 8eae93706b9371be33fbdfc9c0f7b579e7d7829e Mon Sep 17 00:00:00 2001 From: Cameron Reikes Date: Thu, 23 Mar 2023 22:24:18 -0700 Subject: [PATCH] Add a training and linux service file --- server/rpgpt.service | 19 +++++++++++++++++++ training.mdesk | 19 +++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 server/rpgpt.service diff --git a/server/rpgpt.service b/server/rpgpt.service new file mode 100644 index 0000000..ffee242 --- /dev/null +++ b/server/rpgpt.service @@ -0,0 +1,19 @@ +[Unit] +Description=RPGPT/PlayGPT server +ConditionPathExists=/root/rpgpt/server +After=network.target + +[Service] +Type=simple +User=root +Group=root +WorkingDirectory=/root/rpgpt/server +ExecStart=/usr/local/go/bin/go run . +Restart=on-failure +RestartSec=10 +StandardOutput=syslog +StandardError=syslog +SyslogIdentifier=appgoservice + +[Install] +WantedBy=multi-user.target diff --git a/training.mdesk b/training.mdesk index e515577..6618265 100644 --- a/training.mdesk +++ b/training.mdesk @@ -138,6 +138,25 @@ }, } +@training +{ + with: Blocky, + data: + { + @player "Hey", + @npc "I'm not letting you pass. No passing.", + @player "Please", + @npc "No passing", + @player "Plllllz", + @npc "No passing", + @player "I'll go e you tripod. I have tripod", + @npc "You don't have one right now", + @player "Yes I do see", + @item_possess Tripod, + @npc "Well alright then *lets player pass*", + }, +} + @training { with: GodRock,