team-making-bot

module
v0.0.0-...-4a96510 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 15, 2023 License: Apache-2.0

README

team-making-bot

Discord bot for team making

Requirement

Discord bot token

If you don't have token get from Discord Developer Portal

Generate .env file

Type below command

$ make gen_secret

and PASTE your bot token along prompt. (Token don't displayed for security)

Please input your bot token to make .env.dev file.
>

Run debug (Visual Studio Code)

Add below configuration to launch.json

{
  "version": "0.2.0",
  "configurations": [
    {
      "name": "Launch",
      "type": "go",
      "request": "launch",
      "mode": "auto",
      "program": "${workspaceFolder}/cmd/app/main.go",
      "cwd": "${workspaceFolder}",
      "env": {},
      "args": [
        "-v=6",
        "-logtostderr",
        "--env_file=./env/.env.dev",
        "--greet=false"
      ]
    }
  ]
}

Run debug (console)

$ go run cmd/app/main.go -v 6 -logtostderr --env_file=./env/.env.dev --greet=false

Build and run

$ make build
$ make run_build

Directories

Path Synopsis
internal
pkg
proto
service

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL