micro/agent/input/discord
Dmitry Kozlov a3a1a84172
Split long discord output message into the chunks by 2000 characters (#1704)
Signed-off-by: Dmitry Kozlov <dmitry.f.kozlov@gmail.com>
2020-06-15 22:22:00 +01:00
..
conn.go Split long discord output message into the chunks by 2000 characters (#1704) 2020-06-15 22:22:00 +01:00
discord.go fix HTTP 401 Unauthorized, {"message": "401: Unauthorized", "code": 0} (#1586) 2020-04-28 13:06:01 +01:00
README.md Add agent => bot 2019-05-31 00:18:41 +01:00

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.