generated from nhcarrigan/template
feat: add ability to log and display sanctions
This commit is contained in:
+1
-1
@@ -5,7 +5,7 @@
|
||||
"main": "index.js",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"lint": "eslint ./src --max-warnings 0",
|
||||
"lint": "eslint ./src --max-warnings 0 --ignore-pattern ./src/data",
|
||||
"build": "tsc",
|
||||
"start": "op run --env-file=./prod.env -- node ./prod/index.js",
|
||||
"test": "echo 'No tests yet' && exit 0"
|
||||
|
||||
+18649
File diff suppressed because one or more lines are too long
@@ -12,10 +12,13 @@ import { errorHandler } from "../utils/errorHandler.js";
|
||||
* @param hikari - Hikari's Discord instance.
|
||||
* @param message - The message payload from Discord.
|
||||
*/
|
||||
// eslint-disable-next-line max-lines-per-function -- This function is large, but it handles a lot of logic.
|
||||
// eslint-disable-next-line max-lines-per-function, complexity -- This function is large, but it handles a lot of logic.
|
||||
const guildMessageCreate = async (hikari, message) => {
|
||||
try {
|
||||
if (!hikari.user || !message.mentions.has(hikari.user.id)) {
|
||||
if (!hikari.user || !message.mentions.has(hikari.user.id, {
|
||||
ignoreEveryone: true,
|
||||
ignoreRoles: true,
|
||||
}) || message.author.bot) {
|
||||
return;
|
||||
}
|
||||
await message.channel.sendTyping();
|
||||
|
||||
Reference in New Issue
Block a user