This repository has been archived by the owner on Dec 19, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Matthew Ray
committed
Oct 12, 2018
1 parent
f3f8273
commit e2aa673
Showing
3 changed files
with
23 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
exports.run = (client, message) => { | ||
const members = message.guild.members.filter(member => member.displayName && /(discord\.(gg|io|me|li)\/.+|discordapp\.com\/invite\/.+)/i.test(member.displayName)); | ||
return message.channel.send(members.map(member => `\`${member.id}\` ${member.displayName}`).join('\n') || 'No one in this server has a Discord invite as their nick name.'); | ||
}; | ||
|
||
exports.conf = { | ||
enabled: true, | ||
guildOnly: true, | ||
aliases: ['cn'], | ||
permLevel: 'Server Moderator' | ||
}; | ||
|
||
exports.help = { | ||
name: 'checknicks', | ||
category: 'Moderation', | ||
description: 'Returns a list of members with an invite as their nick name.', | ||
usage: 'checknicks' | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters