Browse Source

Closures (#9)

Closures

Signed-off-by: Etzelia <etzelia@hotmail.com>

Reviewed-on: https://git.birbmc.com/Etzelia/canopeas/pulls/9
Co-Authored-By: Etzelia <etzelia@hotmail.com>
Co-Committed-By: Etzelia <etzelia@hotmail.com>
pull/13/head
Etzelia 7 months ago
parent
commit
4fb7cc2928
  1. 3
      discord/echo.go

3
discord/echo.go

@ -10,7 +10,8 @@ import (
)
func Echo(cfg *config.Config) {
for _, e := range cfg.Echoes {
for _, echo := range cfg.Echoes {
e := echo // Closure
commands = append(commands, &command{
name: e.Name,
aliases: e.Aliases,

Loading…
Cancel
Save