sonybot/sonydevworldbot.service

15 lines
443 B
INI

[Unit]
Description = SonyDevWorld bot
[Service]
Type=oneshot
# Adjust to where you'd like to deploy the bot
# %h expands to the current user's home dir
WorkingDirectory = %h/bot
#Environment=SONYDEVWORLD_BOT_TOKEN='<my-token>'
#Environment=SONYDEVWORLD_BOT_CHANNEL='<my-channel-id>'
# PYTHONUNBUFFERED is needed for proper logging to journald
Environment=PYTHONUNBUFFERED=1
ExecStart = /usr/bin/python3 %h/bot/SonyDevWorld.py
PrivateTmp=true