1.0.5 • Published 5 years ago

discord-dmsupport v1.0.5

Weekly downloads
2
License
ISC
Repository
-
Last release
5 years ago

This package allows you to chat with people who direct message your discord bot.

How does it work?

Any message received in a dm channel of your bot will be forwarded to a channel in the given Guild. This package will create a channel for each user under the "dm-support" category. If none exists it will create that category. Any message send in that channel will be forwarded in the dm channel with the User.

Why should I need that?

Some confused Users still dm Bots and hope for an answer. This package will allow doing so. You can give support over your bots direct messages.

How do I implement it in my current code?

const discord = require('discord.js');
const dmSupport = require('discord-dmsupport');

const client = new Discord.Client();
client.dm = new dmSupport(client, guildID, roleID);
/*
client = your discord client
guildID = the guild where the channels should be created
roleID = the role id (or member id) who should have access to the channels
*/
client.login('<token here>');

client.on('ready', () => {
    // Start the Service when your bot is ready!
    client.dm.startService();
});