Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yktakaha4 committed Dec 2, 2024
1 parent 96ad3b7 commit 25c7265
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions bolt/bolt.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,13 @@ func New(threshold, period, speakers int, channel string, verbose bool) *Bolt {

botToken := os.Getenv("SLACK_BOT_TOKEN")
appToken := os.Getenv("SLACK_APP_TOKEN")
slackClient := slack.New(botToken)
detector := rage.New(threshold, period, speakers, channel, logger, slackClient)
webApi := slack.New(
botToken,
slack.OptionAppLevelToken(appToken),
slack.OptionDebug(verbose),
slack.OptionLog(log.New(os.Stdout, "api: ", log.Lshortfile|log.LstdFlags)),
)

detector := rage.New(threshold, period, speakers, channel, logger, webApi)
return &Bolt{
channel,
verbose,
Expand Down

0 comments on commit 25c7265

Please sign in to comment.