discord

package
v0.0.0-...-8a61243 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2019 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCentralAccount

func GetCentralAccount(db *bolt.DB) (types.Account, error)

GetCentralAccount retrieves the bot's central account

func GetDatabase

func GetDatabase(databasePath string) (*bolt.DB, error)

GetDatabase - Open and return database

Types

type Client

type Client struct {
	AuthenticationToken    string
	Database               *bolt.DB
	TransactionChan        <-chan types.Transaction
	CentralAccount         types.Account
	TransactionPublishChan chan<- network.TxTransport
	Session                *discordgo.Session
	BotUser                *discordgo.User
}

Client wrapper over discord bot with token, database, transaction channels,...

func (*Client) Start

func (d *Client) Start(stopChan chan bool)

Start discord bot

Jump to

Keyboard shortcuts

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