-
Notifications
You must be signed in to change notification settings - Fork 3
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
Sextou handler #2
Conversation
handlers/friday.go
Outdated
|
||
query := req.URL.Query() | ||
query.Add("q", q) | ||
query.Add("key", "LIVDSRZULELA") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you change this line to get the token from the environment?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't understand, you say to edit specifically the commit that entered this key? Because in the last commit i changed to get from the env
a simple handler that reads all messages channel and if the message content contains the Friday trigger ("Friday") sends the gif if it is indeed Friday.
What would you do differently to my code?
Is to filter by specific channel, to read messages only from that channel?