Eris Collector: Create reaction and message collector easily with Eris
Discrod.js collectors have been adapted to eris to make the work of Eris users easier.
Discord: https://discord.com/invite/BjEJFwh
NPM Page GITHUB Page
Usage
Here is a simple but effective example!
/* Eris packages */const Eris = ;const client = "BOT_TOKEN"; /* Eris Collector packages */const ReactionCollector MessageCollector = ; /* Emitted when bot is ready */client; /* Emitted when someone sends message */client; /* Connect to Discord API */client;
Create Reaction Collector
/* Send informative message */let msg = await client;await msg; /* Create reaction filter */let emojiname === "▶️" && userID === Userid; /* Create collector */let collector = client msg filter time: 1000 * 20; /* * Emitted when collector collects something suitable for filter * For more information, please see discord.js docs: https://discord.js.org/#/docs/main/stable/class/ReactionCollector*/collector;
Create Message Collector
/* Send informative message */await client; /* Create messsage filter */let mcontent === "TEST" && mauthorid === Userid; /* Create collector */let collector = client Channel filter time: 1000 * 20; /* * Emitted when collector collects something suitable for filter * For more information, please see discord.js docs: https://discord.js.org/#/docs/main/stable/class/MessageCollector*/collector;
Contact Me For More Help
\ ゜o゜)ノ