Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --watched-channel flag, to allow-list specific channels #82

Open
conorsch opened this issue Nov 20, 2023 · 1 comment
Open

Add --watched-channel flag, to allow-list specific channels #82

conorsch opened this issue Nov 20, 2023 · 1 comment

Comments

@conorsch
Copy link
Contributor

Galileo currently listens to chatter in all Discord channels it has access to, and responds by default. This means that addresses can get posted in a lot of different channels, and our Discord admins have to explicitly ban Galileo from responding in those channels. That's no good. Instead, let's add a --watched-channel flag, which can be repeated, then we'll narrowly target only specific channels that Galileo will listen for messages on.

@conorsch
Copy link
Contributor Author

With some judicious Discord role munging, I believe we have Galileo restricted to the appropriate channels now. However, debug logs are generated every discord message, in any channel:

Nov 21 10:23:07.823 DEBUG message{user_name=REDACTED user_id=REDACTED message_id=1176588622951088150}: galileo::handler: not allowed to send messages in this channel message_info.guild_channel=GuildChannel { id: ChannelId(962034051991097424), bitrate: [SNIP]

I haven't figured out how to shut off those debug logs, so we'll just put up with them for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: No status
Development

No branches or pull requests

1 participant