1.0.2 • Published 6 years ago

sellygg-discord-bot v1.0.2

Weekly downloads
1
License
MPL
Repository
-
Last release
6 years ago

A simple cross platform bot that leverages Selly's webhook system for discord chat notifications

Setup

Create a discord bot account https://discordapp.com/developers/applications/me and then grab the Client ID and then go to the following URL to invite the bot to the Discord server.

https://discordapp.com/api/oauth2/authorize?client_id=CLIENT_ID_GOES_HERE&scope=bot

Enable developer mode on the Discord client and right click on the channel you want the bot to send the message to and click Copy ID

Open config.json and add the bot's token found on the same page where you found the Client ID.

Adjust the port (we recommend 80 if possible) and webhook secret to your desired values.

Now go to Selly and edit the products you'd like the bot to notify regarding orders. An example webhook URL with a port of 80 and a secret of piesarenice would be:

http://serverOrIp/webhook?secret=yourSecret

If the port is not 80, but in this case 123, it would be:

http://serverOrIp:portNumber/webhook?secret=yourSecret

Running

Once the setup is completed, you can now run the bot.

npm install
node app.js

Make sure the executable is in the same folder as config.json

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago