1.0.4 • Published 7 years ago

discord-bot-webhook v1.0.4

Weekly downloads
6
License
ISC
Repository
github
Last release
7 years ago

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');