👾 Dota 2 Runes reminder bot with discord


Keywords
bot, golang, discord, discord-bot, dota2, dota, runes, dota2-bot, dota-gsi, dota-api, dota2-runes, dota2-runes-reminder-bot
Install
go get github.com/mrjoshlab/pepe.bot

Documentation

                           ____        __ 
    ____  ___  ____  ___  / __ )____  / /_
   / __ \/ _ \/ __ \/ _ \/ __  / __ \/ __/
  / /_/ /  __/ /_/ /  __/ /_/ / /_/ / /_  
 / .___/\___/ .___/\___/_____/\____/\__/  
/_/        /_/                            

This project is under construction.

Pull docker imgae

$ docker pull mrjoshlab/pepebot:latest

Configurations

  • We're using hcl (Hashicorp Config Language)
discord {
  token = "<discord_bot_token_here>"
}

sounds {
  type  = "filesystem"
  path  = "./sounds"
  win   = ["gta", "win"]
  loss  = ["loss"]
  runes = ["runes"]
}

db {
  type = "sqlite3"
  path = "./db/data/pepebot.db"
}

steam {
  web_api_token = "<steam_webapi_token_here>"
  # For getting match summeries from valve official apis
}

Using docker image

docker run -dp 9001:9001 --volume $PWD/db/data:/data --volume $PWD/config.hcl:/config/config.hcl mrjoshlab/pepebot:latest --config-file=/config/config.hcl

docker compose example

version: '3'

services:

  bot:
    container_name: pepebot
    image: mrjoshlab/pepebot:latest
    restart: always
    command: ["--config-file", "/config/config.hcl"]
    ports:
      - 9001:9001
    volumes:
      - $PWD/db/data:/data
      - $PWD/config.hcl:/config/config.hcl

Pull git repo

$ git clone https://github.com/mrjosh/pepebot.git

Build the docker image

$ docker-compose build

Run the docker image

$ docker-compose up -d

Ez :)