Skip to content

Commit

Permalink
update say usage
Browse files Browse the repository at this point in the history
  • Loading branch information
camprevail committed Jan 9, 2022
1 parent b5aa480 commit d3f9d1d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ client.on("message", async message => {
}

if(command === "say"){
if(!args[0]){return message.reply('\nThe syntax is .say [channel name, no hashtag] [messsage]')}
if(!admins.includes(message.author.id.toString())) {return console.log(`${message.author.name} is not an admin.`)}
if(message.channel.type != 'dm') {return}
guild = client.guilds.cache.get(config.guild)
Expand Down

0 comments on commit d3f9d1d

Please sign in to comment.