#!/bin/bash
# Install requirements first
pip3 install --user discord.py aiohttp requests

# Kill old bot process if running
pkill -f "python3 bot.py"

# Start bot
cd /home/username/discordbot
python3 bot.py &