mirror of
https://github.com/musix-org/musix-oss
synced 2024-12-23 00:23:17 +00:00
Update index.js
This commit is contained in:
parent
b0eac04971
commit
6af5b45823
2
index.js
2
index.js
@ -85,7 +85,7 @@ client.on('message', async msg => {
|
|||||||
var textcoms = ['!test','!restart','!help','!info','!invite']
|
var textcoms = ['!test','!restart','!help','!info','!invite']
|
||||||
if (msg.author.bot) return undefined;
|
if (msg.author.bot) return undefined;
|
||||||
if (msg.content.startsWith(`${PREFIX}`)) {
|
if (msg.content.startsWith(`${PREFIX}`)) {
|
||||||
if (msg.content === textcoms) return;
|
if (msg.content === textcoms) return undefined;
|
||||||
if (msg.member.guild.roles.find(x => x.name === 'DJ')) {
|
if (msg.member.guild.roles.find(x => x.name === 'DJ')) {
|
||||||
if (!msg.member.roles.find(x => x.name === 'DJ')) {
|
if (!msg.member.roles.find(x => x.name === 'DJ')) {
|
||||||
msg.channel.send(':x: i\'m sorry you need to have the \'DJ\' role!')
|
msg.channel.send(':x: i\'m sorry you need to have the \'DJ\' role!')
|
||||||
|
Loading…
Reference in New Issue
Block a user