Skip to content

soekarnohatta/SiskamlingBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

99 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

codecov

SiskamlingBot Go

Official repository of SiskamlingBot, written in Golang

Preparation

  1. Golang 1.15+
  2. MongoDB
  3. Nginx or OpenLiteSpeed for reverse proxy (Optional)
  4. Bot Token

Run Development

  • Clone this repo.
  • Install MongoDB and create database e.g. test.
  • Copy .example.env to .env and fill all required fields.
  • Type go run . in your CLI.
  • Your bot has succesfully working local as Development using Poll mode.

Run Production

  • Clone this repo.
  • Install MongoDB and create database e.g. test.
  • Copy .example.env to .env and fill all required fields.
  • Server with domain name must include HTTPS support (e.g https://yoursite.co.id) for using webhook mode.
  • Run go build . and place your binary somewhere.
  • Setup reverse proxy for Web Server, here example.
  • Launch bot with ./SiskamlingBot, your bot will run using poll or webhook.

Releases

No releases published

Packages

No packages published

Languages