micro/agent/input/discord
Vasiliy Tolstov 7b385bf163
minimize allocations in logger and tunnel code (#1323)
* logs alloc

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>

* fix allocs

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>

* fix allocs

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>

* tunnel allocs

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>

* try to fix tunnel

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>

* cache cipher for send

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>

* more logger

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>

* more logger

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>

* more logger

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>

* more logger

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>

* more logger

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>

* more logger

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>

* more logger

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-03-11 17:55:39 +00:00
..
conn.go minimize allocations in logger and tunnel code (#1323) 2020-03-11 17:55:39 +00:00
discord.go fix import paths for v2 release 2020-01-30 14:44:40 +03: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.