Monitor an 8chan thread to a discord webhook.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
noirscape 4f6b97fae4
Move sleep to proper location
7 months ago
.gitignore Initial commit 7 months ago
LICENSE Initial commit 7 months ago
README.md Initial commit 7 months ago
config.py.example Initial commit 7 months ago
main.py Move class to its own thread 7 months ago
requirements.txt Initial commit 7 months ago
threadstreamer.py Move sleep to proper location 7 months ago

README.md

dthread_monitor

Monitor an 8chan thread to discord.

INSTALLATION

  • Clone repo
  • pip install --user -r requirements.txt (note: use a venv if wanted)
  • Make webhook in discord for desired channel, set name and avatar, copy URL.
  • Copy config.py.example to config.py
  • Fill out config.py, THREAD_ID is the number after /res/ but before .html, BOARD is the shortname of the board (ie. v if monitoring /v/)

USAGE

  • python main.py

The script automatically exists if the thread 404s. To prevent hitting ratelimits, the script only sends a full post every 3 seconds.

CREDITS

  • bibanon - py8chan
  • kyb3r - dhooks

LICENSE

#  dhtread_monitor - Monitor an 8chan thread to a discord webhook.
#  Copyright (C) 2019 - Valentijn "noirscape" V.
#
#  This program is free software: you can redistribute it and/or modify
#  it under the terms of the GNU Affero General Public License as published
#  by the Free Software Foundation at version 3 of the License.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU Affero General Public License for more details.
#
#  You should have received a copy of the GNU Affero General Public License
#  along with this program.  If not, see <https://www.gnu.org/licenses/>.