This commit is contained in:
Lea 2023-03-20 20:02:15 +01:00
parent 8a2f5d6fbe
commit 7b8f2621ad
Signed by: Lea
GPG key ID: 1BAFFE8347019C42

View file

@ -215,6 +215,8 @@ client.on('message', async (message) => {
const logs = client.channels.get(process.env.LOGS!); const logs = client.channels.get(process.env.LOGS!);
const privileged = message.member?.hasPermission(message.channel?.server!, 'ManageMessages'); const privileged = message.member?.hasPermission(message.channel?.server!, 'ManageMessages');
if (!Object.keys(COMMANDS).includes(args[0]?.toLowerCase())) return;
if (!privileged && db.data?.blocked.includes(message.author_id)) { if (!privileged && db.data?.blocked.includes(message.author_id)) {
console.log('Ignoring nerd'); console.log('Ignoring nerd');
try { try {