Skip to content

Commit

Permalink
chore: Fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
raed-shomali committed Jul 30, 2023
1 parent 66824cd commit 32e6347
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions examples/command-aliases/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,15 @@ package main
import (
"context"
"log"
//"os"
"os"

"github.com/shomali11/slacker/v2"
)

// 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{
Expand Down

0 comments on commit 32e6347

Please sign in to comment.