Skip to content

RhykerWells/Summit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

639 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Summit

Summit is a bot I've decided to write to give myself a reason to learn Go and how the language works. It by all means will not be perfect as I am teaching myself this language as I progress in this. A lot of the inspiration for command structure and the like comes from YAGPDB

Selfhosting

Standalone

Install Golang

Install Postgres

sudo apt update
sudo apt install postgresql

Configure Postgres
sudo -u postgres psql

CREATE DATABASE summit;
create user summit with encrypted password 'password';
grant all privileges on database summit to summit;
\c summit
grant usage, create on schema public to summit;
\q

Downloading git and setting up the workspace

sudo apt install git
git clone https://github.com/RhykerWells/summit

Add your environment variables to your ~/.profile (these are located within cmd/summit/example-env)
SUMMIT_TOKEN - Your bot token. NOT prefixed with "Bot"
SUMMIT_PGUSERNAME - The user in postgres you created
SUMMIT_PASSWORD - The password you set in postgres

Prefix each variable with export:
export SUMMIT_TOKEN="tokenxxxx"

Building & running the binary

cd cmd/summit
go build
./summit

Docker

Update your system and install git

sudo apt update
sudo apt install git

Clone the repository

git clone https://github.com/RhykerWells/summit
cd summit/docker

Copy the environment variable files and edit where applicable

cp app.example, app.env
cp db.example, db.env

Add your docker image to the compose file docker compose up -d

About

Summit: Reach the peak of server management

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •