discordbot

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAndStartSession

func CreateAndStartSession(conf DiscordConf, fatalErr chan error)

Types

type DiscordAdmin

type DiscordAdmin struct {
	Username      string
	Discriminator string
}

type DiscordBot

type DiscordBot struct {
	Token   string
	Admins  []DiscordAdmin
	Session *discordgo.Session
	ErrChan chan error
}

func (*DiscordBot) Run

func (b *DiscordBot) Run() error

type DiscordConf

type DiscordConf struct {
	BotToken string
	Admins   []DiscordAdmin
}

Jump to

Keyboard shortcuts

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