Noob Discord Bot
Clone this repo and initialize some files. You will need your Discord Bot's Token.
git clone https://github.com/brandoncorrea/Noob.git
cd Noob/Noob.App
touch migrations.txt
mkdir db
echo "DISCORD_TOKEN" > discord.token
Copy this text to /etc/systemd/system/noob.service
with the app's directory and your system user.
[Unit]
Description=Noob Service
StartLimitIntervalSec=30
StartLimitBurst=5
[Service]
Type=simple
Restart=always
RestartSec=1
WorkingDirectory=/Path/To/Noob/Project/Noob/Noob.App
ExecStart=dotnet run --configuration Release
User=YOUR_SYSTEM_USER
Reload:
systemctl daemon-reload
Run:
sudo systemctl start noob
Verify:
systemctl status noob
dotnet run --configuration Release
dotnet test
- Recommended Specs:
- 1GB RAM
- 8GB SSD
- Ubuntu LTS
sudo apt-get update
sudo apt install -y dotnet-sdk-6.0 aspnetcore-runtime-6.0 sqlite3
git clone https://github.com/brandoncorrea/Noob.git
cd Noob/Noob.App
dotnet build --configuration Release
echo "TOKEN" >> discord.token
scp -i ~/.ssh/ssh-key.cer ubuntu@remote:/home/ubuntu/Noob/Noob.App/db/noob.db noob.db
mkdir db
touch migrations.txt
[Unit]
Description=Noob Service
StartLimitIntervalSec=30
StartLimitBurst=5
[Service]
Type=simple
Restart=always
RestartSec=1
WorkingDirectory=/home/ubuntu/Noob/Noob.App
ExecStart=dotnet run --configuration Release
User=ubuntu
sudo nano /etc/systemd/system/noob.service
sudo systemctl daemon-reload
sudo systemctl start noob