Skip to content

A discord bot that can keep pins at the top of the pin list in a channel by unpinning and repinning them

Notifications You must be signed in to change notification settings

arc25275/stickypin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stickypin

A discord bot that can keep pins at the top of the pin list in a channel.

How to use (Assuming you have nodejs and git installed) :

1. Cloning

$ git clone https://github.com/arc25275/stickypin
$ cd stickypin

2. Install Dependencies

$ npm install

3. Set up config and auth files

Rename _auth.json to auth.json and put your discord token in the space provided
{
	"token": "Discord Token"
}
Rename _config.json to config.json and put the message ids of the messages you want to keep pinned at the top. You should be able to do as many messages as you want, just make sure to change the number after "id" e.g id1, id2, id3.

Use the full id that is copied when doing this:

(Found when holding shift on a message)

Should be in the format of channelID-messageID Example: 788539859555450922-792909027914022952

{
	"messages": {
		"id1": "messageID",
		"id2": "messageID"
	}
}

4. Running

$ node main.js

About

A discord bot that can keep pins at the top of the pin list in a channel by unpinning and repinning them

Topics

Resources

Stars

Watchers

Forks