Simple FOnline Discord status bot:
Docker / Podman:
-
Build container image
docker build -t fonline-bot .
-
Create and run the container
docker run -d -p 44861:44861 --name fo-bot -e TOKEN={token-goes-here} -e SERVER_ADDRESS=game.fonline-aop.net -e SERVER_PORT=4000 fonline-bot
Classic:
- Fill out the token, server IP address and server port number constants inside bot.js
- Install dependencies
npm install
- Run the bot
node bot.js
History of online can be viewed through logs of container:
docker container logs fo-bot