Process of format fixing
This commit is contained in:
@@ -23,15 +23,15 @@ export = {
|
||||
member.user.createdAt.toLocaleString(),
|
||||
color: embedColor,
|
||||
thumbnail: {
|
||||
url: member.user.avatarURL() || "",
|
||||
url: member.user.avatarURL() || ""
|
||||
},
|
||||
footer: {
|
||||
text: "ID: " + member.id,
|
||||
icon_url: member.user.avatarURL() || undefined,
|
||||
icon_url: member.user.avatarURL() || undefined
|
||||
},
|
||||
timestamp: new Date().toISOString(),
|
||||
},
|
||||
],
|
||||
timestamp: new Date().toISOString()
|
||||
}
|
||||
]
|
||||
})
|
||||
},
|
||||
}
|
||||
} as Event
|
||||
|
||||
@@ -17,8 +17,8 @@ export = {
|
||||
interaction.commandName +
|
||||
" " +
|
||||
interaction.options.getSubcommand(),
|
||||
"pink",
|
||||
),
|
||||
"pink"
|
||||
)
|
||||
)
|
||||
} catch {
|
||||
console.log(
|
||||
@@ -26,8 +26,8 @@ export = {
|
||||
interaction.user.username +
|
||||
" ran " +
|
||||
interaction.commandName,
|
||||
"pink",
|
||||
),
|
||||
"pink"
|
||||
)
|
||||
)
|
||||
}
|
||||
}
|
||||
@@ -40,10 +40,10 @@ export = {
|
||||
interaction.user.discriminator +
|
||||
" clicked " +
|
||||
interaction.customId,
|
||||
"pink",
|
||||
),
|
||||
"pink"
|
||||
)
|
||||
)
|
||||
return
|
||||
}
|
||||
},
|
||||
}
|
||||
} as Event
|
||||
|
||||
@@ -21,18 +21,18 @@ export = {
|
||||
await message.channel.send({
|
||||
embeds: [
|
||||
{
|
||||
description: `\`\`\`js\n${outputString}\`\`\``,
|
||||
},
|
||||
],
|
||||
description: `\`\`\`js\n${outputString}\`\`\``
|
||||
}
|
||||
]
|
||||
})
|
||||
} catch (error) {
|
||||
await message.channel.send({
|
||||
embeds: [
|
||||
{
|
||||
description: `\`\`\`js\n${error}\`\`\``,
|
||||
},
|
||||
],
|
||||
description: `\`\`\`js\n${error}\`\`\``
|
||||
}
|
||||
]
|
||||
})
|
||||
}
|
||||
},
|
||||
}
|
||||
} as Event
|
||||
|
||||
@@ -13,5 +13,5 @@ export = {
|
||||
) {
|
||||
message.react("Woot:734345936347725885")
|
||||
}
|
||||
},
|
||||
}
|
||||
} as Event
|
||||
|
||||
@@ -20,16 +20,16 @@ export = {
|
||||
channel: message.channel.id,
|
||||
createdAt: message.createdTimestamp,
|
||||
deletedAt: Date.now(),
|
||||
attachments: message.attachments.map(a => a.url) || [],
|
||||
attachments: message.attachments.map(a => a.url) || []
|
||||
}
|
||||
|
||||
const snipeCache = new snipeCacheSchema({
|
||||
_id: new mongoose.Types.ObjectId(),
|
||||
userid: message.author.id,
|
||||
channelid: message.channel.id,
|
||||
data: msg,
|
||||
data: msg
|
||||
})
|
||||
|
||||
await snipeCache.save()
|
||||
},
|
||||
}
|
||||
} as Event
|
||||
|
||||
@@ -9,5 +9,5 @@ export = {
|
||||
|
||||
execute(client: Client) {
|
||||
console.log(color("Logged in as " + client.user!.tag + "!", "green"))
|
||||
},
|
||||
}
|
||||
} as Event
|
||||
|
||||
@@ -16,9 +16,9 @@ export = {
|
||||
embeds: [
|
||||
{
|
||||
description: "Bot is online!",
|
||||
color: embedColor,
|
||||
},
|
||||
],
|
||||
color: embedColor
|
||||
}
|
||||
]
|
||||
})
|
||||
},
|
||||
}
|
||||
} as Event
|
||||
|
||||
@@ -22,9 +22,9 @@ export = {
|
||||
let i = 1
|
||||
setInterval(
|
||||
() => user.setActivity(statuses[i++ % statuses.length]),
|
||||
1000 * 60 * 10,
|
||||
1000 * 60 * 10
|
||||
)
|
||||
|
||||
user.setStatus("dnd")
|
||||
},
|
||||
}
|
||||
} as Event
|
||||
|
||||
@@ -28,11 +28,11 @@ export = {
|
||||
footer: {
|
||||
text: "ID: " + newState.member!.id,
|
||||
icon_url:
|
||||
newState.member!.user.avatarURL() || undefined,
|
||||
newState.member!.user.avatarURL() || undefined
|
||||
},
|
||||
timestamp: new Date().toISOString(),
|
||||
},
|
||||
],
|
||||
timestamp: new Date().toISOString()
|
||||
}
|
||||
]
|
||||
})
|
||||
} else if (oldChannel !== null && newChannel === null) {
|
||||
logToChannel("bot", {
|
||||
@@ -47,11 +47,11 @@ export = {
|
||||
footer: {
|
||||
text: "ID: " + oldState.member!.id,
|
||||
icon_url:
|
||||
oldState.member!.user.avatarURL() || undefined,
|
||||
oldState.member!.user.avatarURL() || undefined
|
||||
},
|
||||
timestamp: new Date().toISOString(),
|
||||
},
|
||||
],
|
||||
timestamp: new Date().toISOString()
|
||||
}
|
||||
]
|
||||
})
|
||||
} else if (oldChannel !== null && newChannel !== null) {
|
||||
if (oldChannel.id === newChannel.id) return
|
||||
@@ -70,12 +70,12 @@ export = {
|
||||
footer: {
|
||||
text: "ID: " + oldState.member!.id,
|
||||
icon_url:
|
||||
oldState.member!.user.avatarURL() || undefined,
|
||||
oldState.member!.user.avatarURL() || undefined
|
||||
},
|
||||
timestamp: new Date().toISOString(),
|
||||
},
|
||||
],
|
||||
timestamp: new Date().toISOString()
|
||||
}
|
||||
]
|
||||
})
|
||||
}
|
||||
},
|
||||
}
|
||||
} as Event
|
||||
|
||||
Reference in New Issue
Block a user