From 32e63477008b5603f9dc7bcce41909bb4a1e1116 Mon Sep 17 00:00:00 2001 From: Raed Shomali Date: Sat, 29 Jul 2023 23:06:08 -0400 Subject: [PATCH] chore: Fix example --- examples/command-aliases/main.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/examples/command-aliases/main.go b/examples/command-aliases/main.go index 97555e3..872715e 100644 --- a/examples/command-aliases/main.go +++ b/examples/command-aliases/main.go @@ -3,7 +3,7 @@ package main import ( "context" "log" - //"os" + "os" "github.com/shomali11/slacker/v2" ) @@ -11,9 +11,7 @@ import ( // Defining a command with aliases func main() { - //bot := slacker.NewClient(os.Getenv("SLACK_BOT_TOKEN"), os.Getenv("SLACK_APP_TOKEN")) - bot := slacker.NewClient("xoxb-13360094916-2243791173942-I6FwX8kkBNPvANakdfVWm8PF", "xapp-1-A027JMM1RV2-5373599545492-06fa58c972681603e29d44cac9c0f62aa895bc5ccc013256b180dee7961eab23") - + bot := slacker.NewClient(os.Getenv("SLACK_BOT_TOKEN"), os.Getenv("SLACK_APP_TOKEN")) bot.AddCommand(&slacker.CommandDefinition{ Command: "echo {word}", Aliases: []string{