Admin

In this guide, we will delve deeper into the various actions a site admin can perform. This includes managing users, handling site settings, and overseeing system performance.

An admin is defined as the user with the property admin set to true. An admin user with username of admin is created automatically when the server is first initialized. The admin user has access to the admin page, which is accessible at https://watchdog.zeroruka.moe/admin.


Control Panel

This page shows the actions that an admin can perform. For now it only has one action, which is to start all scrapers.

When the button is pressed, the server will initialise scrapers of every so that it matches the saved scraper state of each user. This button should only be pressed when the server is restarted, if not, it will cause the scrapers to run twice.


All Users

This page shows all the users that have been created on the site. It also shows their scraper state, telegram chat ID, and the admin status.

Example Data Table

Added ByTelegram IDIs ScrapingIs Admin
admin123456789truetrue
test1987654321falsefalse
............

By pressing the delete button, the admin can delete a user from the site. This will also delete all the listings that the user has scraped and all urls that the user has added to the site.


All Listings

This page shows all the listings that have been scraped by all users on the site.

Example Data Table

Added ByTitlePriceDate AddedOrigin Country
admin............
test1............
...............

Was this page helpful?