Skip to content

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.

3 participants