fix bot owner
This commit is contained in:
parent
f6fe3ca2e9
commit
7e6fcf8ce3
|
@ -46,7 +46,7 @@ module.exports.run = async (message, args) => new Promise(async (resolve, reject
|
||||||
}
|
}
|
||||||
|
|
||||||
await client.channels.sendMessage(message.channel, `>## ${args[0] ? 'Updated ' : ''}<@${user._id}>'s dev status\n>\u200b\n`
|
await client.channels.sendMessage(message.channel, `>## ${args[0] ? 'Updated ' : ''}<@${user._id}>'s dev status\n>\u200b\n`
|
||||||
+ `>Dev level: \`${devStatus.level}\`\n`
|
+ `>Dev level: \`${user._id === config.botOwner ? 'Bot Owner' : devStatus.level}\`\n`
|
||||||
+ `>Last modified by: ${devStatus.lastModifiedBy ? `<@${devStatus.lastModifiedBy}>` : '`Nobody`'}`);
|
+ `>Last modified by: ${devStatus.lastModifiedBy ? `<@${devStatus.lastModifiedBy}>` : '`Nobody`'}`);
|
||||||
|
|
||||||
db.devs.set(user._id, devStatus);
|
db.devs.set(user._id, devStatus);
|
||||||
|
|
Loading…
Reference in a new issue