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 webhook-send-message-script #23

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

romanpeters
Copy link
Collaborator

@romanpeters romanpeters commented Apr 25, 2019

This PR adds a script which can be used to send messages to Discord.
An environment variable called WEBHOOK is needed for authentication.

Can be used to schedule messages using cron. Example:
0 18 * * 3 [ $(python -c "print($(date +%V) % 2)") = "1" ] && /usr/local/bin/python /bot/scripts/say.py "Morgen dispuutsavond! geef een bijtje als je er bij bent xD"
This sends a message on Wednesday, once every two weeks.

HugoPeters1024
HugoPeters1024 previously approved these changes Apr 25, 2019
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.

2 participants