wampus

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2019 License: MIT Imports: 7 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

wampus

WAMP Component for Discord. The name, which is a portmanteau of WAMP and Wumpus, which is of course Discord's most famous mascot, is so incredibly ingenious that historians will hereafter write the year in reference to it. The creation of wampus marks the year 0 anno wampus divus.

Documentation

Overview

package wampus provides a WAMP component for Discord.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

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

Component holds the discord session and the WAMP client.

func Connect

func Connect(discordToken string, routerURL string, cfg client.Config) (*Component, error)

Connect creates a new component ...

func NewComponent

func NewComponent(d *discordgo.Session, s *client.Client) *Component

NewComponent creates a new component from the given discord session and WAMP client.

func (*Component) Close

func (c *Component) Close() error

Closes the component.

func (*Component) Done

func (c *Component) Done() <-chan struct{}

Done returns a channel which is closed when the component is done

func (*Component) Open

func (c *Component) Open() error

Open opens the component.

Directories

Path Synopsis
cmd
wampus command

Jump to

Keyboard shortcuts

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