We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
🏗 Webhook handler for discord.boats
You must have Node.js installed (comes with NPM) You can install it in your project by:
You must have Node.js installed (comes with NPM)
You can install it in your project by:
$ npm i laffey # or $ yarn add laffey
Instance
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.
discord.boats
You setup a service (or multiple) in the InstanceOptions constructor.
InstanceOptions
new Instance({ services: ['Boats'] });
Multiple services can be added up with the services array
services