Added service file. Fixed missing bot intents
This commit is contained in:
5
bot.py
5
bot.py
@@ -18,7 +18,10 @@ subs = json.loads(data)
|
|||||||
|
|
||||||
la_servers = {}
|
la_servers = {}
|
||||||
|
|
||||||
client = discord.Client()
|
intents = discord.Intents.default()
|
||||||
|
intents.message_content = True
|
||||||
|
|
||||||
|
client = discord.Client(intents=intents)
|
||||||
|
|
||||||
def get_servers_status():
|
def get_servers_status():
|
||||||
print("Getting servers", end = " ")
|
print("Getting servers", end = " ")
|
||||||
|
|||||||
16
lostark_bot.service
Normal file
16
lostark_bot.service
Normal file
@@ -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
|
||||||
Reference in New Issue
Block a user