Skip to content

Commit

Permalink
Update botnick.js
Browse files Browse the repository at this point in the history
  • Loading branch information
wdhdev authored Sep 23, 2023
1 parent 58d301b commit 68f0621
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bot/discord/commands/botnick.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ exports.run = (client, message, args) => {
// Check if user is William
if (message.author.id !== "853158265466257448") return;

if(!args[2]) return message.reply("Please provide a message!");
if(!args[1]) return message.reply("Please provide a message!");

const newNick = message.content.split(" ").slice(2).join(" ");
const newNick = message.content.split(" ").slice(1).join(" ");

message.guild.me.setNickname(newNick);
message.reply(`Bot nickname set to \`${newNick}\``);
Expand Down

0 comments on commit 68f0621

Please sign in to comment.