Watchdog Chat Guard | Deploying The Devs Network's The Guard in Glitch

About the Project

Watchdog Chat Guard is a moderation Telegram bot that uses Telegraf, usually a fork of the Devs Network’s The Guard bot. I did some Express.js stuff for the pinging services to work to keep it active 24/7 (Glitch will forcedly do refresh twice a day if you do that).

Setup

  1. Remix the app in Glitch.
  2. Get your bot token from BotFather and paste it to your .env as TELEGRAM_API_TOKEN.
  3. (optional) To enable SpamWatch integration, see this documentation page.
  4. Continue following the setup procedure.
  5. Now, add your bot to the groups to use the Watchdog Chat Guard.
  6. To keep that online, upgrade to Glitch Apps Boosters or use free pinging services like Awake!.

Where to get support?

Before you dive in to support chats, please read the documentation first: https://watchdog-chat-guard-docs.glitch.me

Docs doesn’t help? The Pins team can help you with your problem. Click here to get invite link.

Want official support chat from The Devs Network? If so, click here.

4 Likes

If you click the old link and says Project Not Found, my apologies for that! I changed the project name of the documentation wiki for grammar fixes and now it’s on https://watchdog-chat-guard-docs.glitch.me. Will be updated after this reply.

5-16-2020 Codebase Update

WARNING: I updated some stuff on the codebase! YOU NEED TO UPDATE YOUR INSTANCES AS SOON AS THEY’RE REACHED OUR GITLAB MIRROR!

This update introduces MAINTENANCE_MODE variable that you can enabled to temporarily make your bot offline, solve any conflicts and edit the configuration file and turn back off to go back to business.

How to update your instance?

If you don’t do changes, pull it from our GitLab easily with

## If you don't changed origin's repository URL, you're good to go.
git pull origin/develop

## Otherwise, revert it!
git remote set-url origin https://gitlab.com/MadeByThePinsTeam-DevLabs/watchdog-chat-guard
git fetch --all
git pull origin/develop

Done changes in your instance? After pulling, you need to resolve conflicts first…

/* 
 * Nuke the HEAD part or make a edit which merges both and save.
 * After resolving, disable maintainance mode and boot up.
*/
<<<<<<< HEAD
	return reply(
		`♻️ ${link(from)} <b>pardoned</b> ${link(userToUnwarn)} ` +
		'<b>for all of their warnings.</b>',
		replyOptions
	);
=======
	return ctx.loggedReply(html`
		♻️ ${ctx.from.first_name} <b>pardoned</b> ${link(userToUnwarn)}
		for all of their warnings.
	`);
>>>>>>> 765a8dd... Add adminLog chat, fixes #96
};

Moving the docs into somewhere, as the current Wiki.js instance in Glitch is having startup problems. You’ll be notified here once we moved out stuff.