BlueskyFR / pinbot

A simple Discord bot that pins or unpins a message whose ID is passed in argument :)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PinBot

A simple bot that pins (!pin) or unpins (!unpin) a message whose ID is passed in parameter 🙂 / Un bot tout simple qui épingle (!pin) ou désépingle (!unpin) un message dont l'ID est passé en paramètre 🙂

Syntax/Syntaxe :

!pin <message ID>
!unpin <message ID>

Setup

In order to get the bot working, create a config.json5 file at the root of the project containing the following:

{
  // The bot's auth token
  token: "Your bot's auth token here :)",

  // The bot's commands prefix
  prefix: "!"
}

And then install the dependencies :

yarn

Running the bot

# Start the bot and watch for changes (useful for dev)
yarn watch

# Normally start the bot
node bot.js

About

A simple Discord bot that pins or unpins a message whose ID is passed in argument :)


Languages

Language:JavaScript 100.0%