discordogo

package
v0.0.0-...-cd3e6e7 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2022 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bot

type Bot struct {
	*discordgo.Session
	Name    string
	Version string
}

The Bot struct is just a discord bot, not a Bearer.

func CreateBot

func CreateBot(opts BotOpts) (*Bot, error)

Create a new bot

func (*Bot) Init

func (b *Bot) Init()

Login and turn on the bot

func (*Bot) OnReady

func (b *Bot) OnReady()

Print a message when the bot is ready

type BotOpts

type BotOpts struct {
	Name    string `json:"name"`
	Version string `json:"version"`
	Token   string `json:"token"`
}

This structure contains the values used in the bot content.

Jump to

Keyboard shortcuts

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