discord-webhook-2
v1.0.0
Published
A package for discord webhooks
Downloads
4
Readme
How to use
Get Link
Get your web hook link from Discord should look something like this
https://canary.discordapp.com/api/webhooks/<HOOKID>/<TOKEN>
Setup
This has to be done.
var discord = require('discord-bot-webhook');
discord.hookId = 'PutHookIdHere';
discord.hookToken = 'PutTokenHere';
This can be done if you want
discord.userName = 'SpiderBot';
discord.avatarUrl = 'SomeUrl';
Use
To send a message after you set
discord.sendMessage('SomeText');