discord-bot-webhook

1.0.4 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i discord-bot-webhook

Weekly Downloads

10

Version

1.0.4

License

ISC

Last publish

Collaborators

  • chrisuth