patkub / PiazzaBot

Super simple python bot that scans unread piazza posts using the unofficial piazza api and then relays them to a discord webhook

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make secrets.py with:

p_pass = '' # your piazza password
p_email = '' # your piazza email login
p_network = '' # the letters/numbers after /class/ in the url, https://piazza.com/class/...,
d_url = '' # discord webhook url, https://discordapp.com/api/webhooks/...
pip install aiohttp discord piazza-api

Crontab every 5 minutes?

*/5 * * * * /usr/bin/python /home/USER/PiazzaBot/PiazzaBot.py

Right click on server. Server settings. Integrations. Webhooks. New Webhook

About

Super simple python bot that scans unread piazza posts using the unofficial piazza api and then relays them to a discord webhook


Languages

Language:Python 100.0%