Q:

How can i make a reset command to restart my discord.js bot?

I want to make a command so when I do !reset it will reboot/restart the bot. I am using Discord.js v12.
This bot is a simple moderation bot for a server so I just want a quick command to fix errors that require a quick restart without going into Heroku and restart it from there.

A:

I'd imagine you'd need to call the Heroku API to restart the service.
https://devcenter.heroku.com/articles/platform-api-reference#dyno-restart

