discord

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2017 License: Apache-2.0 Imports: 8 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

Discord input for micro-bot

Discord support for micro bot based on discordgo.

This was originally written by Aleksandr Tihomirov (@zet4) and can be found at https://github.com/zet4/micro-misc/.

Options

discord_token

You have to supply an application token via --discord_token.

Head over to Discord's developer introduction to learn how to create applications and how the API works.

discord_prefix

Set a command prefix with --discord_prefix. The default prefix is Micro . You can mention the bot or use the prefix to run a command.

discord_whitelist

Pass a list of comma-separated user IDs with --discord_whitelist. Only allow these users to use the bot.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPrefixFactory

func CheckPrefixFactory(prefixes ...string) func(string) (string, bool)

CheckPrefixFactory Creates a prefix checking function and stuff.

Types

This section is empty.

Jump to

Keyboard shortcuts

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