-
Notifications
You must be signed in to change notification settings - Fork 16
Standard Installation
Larry edited this page Apr 5, 2024
·
4 revisions
.Net Core 6 Download: Here
Download Latest Release: Here
After installation of .Net Runtime 6, you need to run the application one time. The application will state to you that it has created a default config.json file. Exit the application, and configure the file.
If by chance the application doesn't open at all or opens quickly and closes, install .Net Core 6.0 again, and restart your PC afterward. Once your PC reboots, run the .exe file again.
First, create the bot in the discord dev portal, and invite it to your server. Link to those instructions https://github.com/GravityWolfNotAmused/PlayerCountDiscordBot/wiki/Creating-and-Inviting-a-Bot
# Get updated packages and unzip
sudo apt-get update && \
sudo apt-get install unzip
# Get the project from github
wget https://github.com/GravityWolfNotAmused/PlayerCountDiscordBot/releases/download/1.1.1/playercountbot-latest-2023-05-22-linux64.zip
# Unzip the linux version into it's own directory
unzip playercountbot-latest-2023-05-22-linux64.zip -d playercountbot/
# Move to the unzipped directory
cd ./playercountbot
# Give permissions to executable file
chmod +x DiscordPlayerCountBot
# Run the file for the first time, this will generate a Config.json file.
./DiscordPlayerCountBot
# Press Control + C to exit the application
Configuration of Linux Bot:
# Open configuration file:
nano Config.json
# Fill out the configuration file per the instructions here: https://github.com/GravityWolfNotAmused/PlayerCountDiscordBot/wiki/Configuring-Servers
# After it's configured, press Control + S to save and then Control + X to exit
# Launch app in the background, this will return a process ID to you, and we will later learn how to get it if we forget it, and how to use it to close out bot.
# > log.txt will send the logs to that file, and you can open it to view them
# nano log.txt will open the logs to the bot, it's a text file, so it doesn't update in real time
./DiscordPlayerCountBot > log.txt &
Oh no, I forgot my process id to my bot!~
# To find a process simply type the following command and it will print out your process id to the bot
pgrep -f DiscordPlayerCountBot
# To kill/shutdown the bot use the following command, but using your process id instead of 1234
kill 1234