traqBot

package
v0.0.0-...-4b5a188 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package traqBot traQ向けBotクライアント実装

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client traQ Botクライアント

func NewTraQBotClient

func NewTraQBotClient(c *Config) *Client

NewTraQBotClient traQ Botクライアントを生成

func (*Client) SendLog

func (c *Client) SendLog(msg string) error

SendLog ログを送信

func (*Client) SendMessage

func (c *Client) SendMessage(channelID uuid.UUID, msg string) error

SendMessage 指定したチャンネルにメッセージを送信

type Config

type Config struct {
	DevMode             bool
	AccessToken         string
	LogChannel          string
	NotificationChannel string
}

Config traQ Botクライアント用設定

Jump to

Keyboard shortcuts

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