This repository was archived by the owner on Feb 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Home
August (Chris) edited this page Sep 10, 2019
·
2 revisions
🏗 Webhook handler for discord.boats
You must have Node.js installed (comes with NPM)
You can install it in your project by:
$ npm i laffey
# or
$ yarn add laffey
const { Instance, MemoryStorage } = require('laffey');
const instance = new Instance({
port: 9999,
auth: '',
storage: new MemoryStorage({ name: 'awau' }),
services: ['Boats', 'DBL']
});
instance
.on('vote', (pkt) => console.log(`User ${pkt.user.id} has voted!`))
.listen(() => console.log(`Now listening for vote packets on ${instance.options.port}.`);
More services then
discord.boats
will be provided, not a viable source yet.
You setup a service (or multiple) in the
InstanceOptions
constructor.
new Instance({
services: ['Boats']
});
Multiple services can be added up with the
services
array