/hi-town-github-bot

A Hi Town bot that posts new commits

Primary LanguageKotlin

Hi Town Bot

Welcome!

Implement your bot in Bot.kt

Ubuntu server setup guide

1. Install default set of dependencies

apt update
apt install default-jre nginx certbot python3-certbot-nginx

2. Configure Nginx

/etc/nginx/sites-enabled/default:

server {
    server_name github.wekpo.com;

    location / {
        proxy_pass http://localhost:8080;
    }
}

3. Configure Certbot

certbot --nginx
service nginx restart

4. Run your bot

nohup java -jar 'hi-town-github-bot-all.jar' > log.txt 2> errors.txt < /dev/null &

5. Stop your bot

killall java