diff --git a/bot.py b/bot.py index 61fc842..a982626 100644 --- a/bot.py +++ b/bot.py @@ -18,7 +18,10 @@ subs = json.loads(data) la_servers = {} -client = discord.Client() +intents = discord.Intents.default() +intents.message_content = True + +client = discord.Client(intents=intents) def get_servers_status(): print("Getting servers", end = " ") diff --git a/lostark_bot.service b/lostark_bot.service new file mode 100644 index 0000000..9f36fef --- /dev/null +++ b/lostark_bot.service @@ -0,0 +1,16 @@ +[Unit] +Description=Lost Ark Server Status Discord Bot +After=network.target multi-user.target + +[Service] +Restart=always +RestartSec=1 +User=pi +WorkingDirectory=/root/lostark_bot +ExecStart=/usr/bin/python3 /root/lostark_bot/bot.py +StandardOutput=syslog +StandardError=syslog +SyslogIdentifier=LostArkBot + +[Install] +WantedBy=multi-user.target