1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-11-17 08:20:58 -05:00

idk whose house it is but yes

This commit is contained in:
AnxietyisReal 2022-12-30 09:34:05 +11:00
parent 6c4b477851
commit ea61a47418
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ export default {
execute: async(client:TClient, msg:Discord.Message)=>{ execute: async(client:TClient, msg:Discord.Message)=>{
if (!client.config.botSwitches.logs) return; if (!client.config.botSwitches.logs) return;
const channel = client.channels.resolve(client.config.mainServer.channels.logs) as Discord.TextChannel; const channel = client.channels.resolve(client.config.mainServer.channels.logs) as Discord.TextChannel;
const disabledChannels = ['548032776830582794'] const disabledChannels = ['548032776830582794', '541677709487505408']
if (msg.guild?.id != client.config.mainServer.id) return; if (msg.guild?.id != client.config.mainServer.id) return;
if (msg.partial) return; if (msg.partial) return;
if (msg.author.bot) return; if (msg.author.bot) return;

View File

@ -4,7 +4,7 @@ export default {
name: 'messageUpdate', name: 'messageUpdate',
execute: async(client:TClient, oldMsg:Discord.Message, newMsg:Discord.Message)=>{ execute: async(client:TClient, oldMsg:Discord.Message, newMsg:Discord.Message)=>{
if (!client.config.botSwitches.logs) return; if (!client.config.botSwitches.logs) return;
const disabledChannels = ['548032776830582794'] const disabledChannels = ['548032776830582794', '541677709487505408']
if (oldMsg.guild?.id != client.config.mainServer.id) return; if (oldMsg.guild?.id != client.config.mainServer.id) return;
if (oldMsg.author == null) return; if (oldMsg.author == null) return;
if (oldMsg?.author.bot) return; if (oldMsg?.author.bot) return;