Skip to content

Fix industry alerts using wrong Slack bot token#488

Merged
bokelley merged 1 commit into
mainfrom
bokelley/fix-slack-not-in-channel
Jan 2, 2026
Merged

Fix industry alerts using wrong Slack bot token#488
bokelley merged 1 commit into
mainfrom
bokelley/fix-slack-not-in-channel

Conversation

@bokelley

@bokelley bokelley commented Jan 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Fix Slack "not_in_channel" error for industry alerts by using Addie's bot token
  • The code was using SLACK_BOT_TOKEN (AgenticAdvertising.org Bot) but Addie was added to the notification channels
  • Added useAddieToken=true parameter to sendChannelMessage calls in:
    • sendAlertToChannel function
    • sendDailyDigest function
    • Admin test notification endpoint

Test plan

  • Build succeeds
  • All tests pass
  • Code review completed - addressed feedback about admin test endpoint
  • Deploy and verify alerts are sent to #industry-agentic-news channel

🤖 Generated with Claude Code

Consolidate to single Slack bot (Addie) instead of dual-bot setup:

- ADDIE_BOT_TOKEN is now primary, with SLACK_BOT_TOKEN fallback for migration
- Remove useAddieToken parameter from sendChannelMessage and getThreadReplies
- Remove getSlackUserWithAddieToken helper function (use getSlackUser instead)
- Update all callers to use simplified API
- Update error messages to reference ADDIE_BOT_TOKEN

This fixes the industry alerts "not_in_channel" error since Addie (not the
AAO bot) is the bot added to notification channels.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@bokelley bokelley force-pushed the bokelley/fix-slack-not-in-channel branch from 0c5c5bc to 4b4e28e Compare January 2, 2026 22:27
@bokelley bokelley merged commit f07affa into main Jan 2, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant