tubu

command module
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2024 License: MIT Imports: 16 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

tubu

tubu は Go で実装された Discord Bot です.

Features

  • メッセージリンクの展開機能
  • channelコマンド
  • dice コマンド
  • guildコマンド
  • versionコマンド
  • メッセージのピン留め機能

Deployment

[!IMPORTANT] 現在,tubu は Docker compose によるホスティングのみを公式にサポートしています.

Docker Compose が導入されていることを確認してください.

  1. 以下のようなcompose.ymlを用意します.

    services:
      bot:
        container_name: tubu-bot
        image: ghcr.io/aqyuki/tubu:latest
        env_file:
          - .env
        restart: unless-stopped
    
  2. .envを同一のフォルダに作成します.設定できるオプションについてはOptionsを確認してください.

  3. docker compose upで起動できます.

Options

tubuの設定は,環境変数もしくは起動オプションから変更できます.

設定名 概要 環境変数名 フラグ名 既定値 必須
DISCORD_TOKEN Discord Bot の APi トークンを指定してください TUBU_DISCORD_TOKEN token --- ◯
API_TIMEOUT API のタイムアウトを指定してください TUBU_TIMEOUT timeout 10s

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
packages
metadata
metadata package provides methods to get application metadata.
metadata package provides methods to get application metadata.

Jump to

Keyboard shortcuts

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