Whirl21 / sniper

An easy to run simple bot that lets you snipe messages in your Discord server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Icon

Sniper

An easy to run simple bot that lets you snipe and editsnipe messages in your Discord server.

Setup

Node.js 16.6.0 or newer is required.

  1. Run:
$ git clone https://github.com/DankMemer/sniper.git 
$ cd ./sniper
  1. Create config.json: Both the values can be obtained from here
{
	"token": "<Your bot's token>", 
	"application_id": "<Your application's id>" , 
}
  1. Run:
$ npm i
$ npm run register [guild id] 
$ npm run bot

Note: Without specifying [guild id], snipe command will available on all your app's guilds. It will fan out slowly across all guilds, and will be guaranteed to be updated in an hour (due to Discord's cache).

With [guild id] it will be available only within the guild specified . It will update instantly.

PM2

Though not necessary , using pm2 to handle your bot process is a good idea In short : it just restarts your bot on restart you can learn more about it here

License

MIT

About

An easy to run simple bot that lets you snipe messages in your Discord server

License:MIT License


Languages

Language:JavaScript 100.0%