generated from nhcarrigan/template
Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
1fa793935f
|
|||
|
f3197245db
|
|||
|
2ebeddd890
|
|||
|
c6de6c9591
|
|||
|
d6ad6375b2
|
|||
|
10a2f3dcd5
|
|||
|
f25163096b
|
|||
|
4437047543
|
+16
-11
@@ -7,12 +7,15 @@
|
|||||||
import { DiscordAnalytics } from "@nhcarrigan/discord-analytics";
|
import { DiscordAnalytics } from "@nhcarrigan/discord-analytics";
|
||||||
import { Client, Events, GatewayIntentBits, Partials } from "discord.js";
|
import { Client, Events, GatewayIntentBits, Partials } from "discord.js";
|
||||||
import { chatInputInteractionCreate } from "./events/interactionCreate.js";
|
import { chatInputInteractionCreate } from "./events/interactionCreate.js";
|
||||||
import {
|
|
||||||
guildMessageCreate,
|
|
||||||
directMessageCreate,
|
|
||||||
} from "./events/messageCreate.js";
|
|
||||||
import { logger } from "./utils/logger.js";
|
import { logger } from "./utils/logger.js";
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Import {
|
||||||
|
* guildMessageCreate,
|
||||||
|
* directMessageCreate,
|
||||||
|
* } from "./events/messageCreate.js";
|
||||||
|
*/
|
||||||
|
|
||||||
const hikari = new Client({
|
const hikari = new Client({
|
||||||
intents: [
|
intents: [
|
||||||
GatewayIntentBits.Guilds,
|
GatewayIntentBits.Guilds,
|
||||||
@@ -35,13 +38,15 @@ hikari.once(Events.ClientReady, () => {
|
|||||||
analytics.startCron();
|
analytics.startCron();
|
||||||
});
|
});
|
||||||
|
|
||||||
hikari.on(Events.MessageCreate, (message) => {
|
/*
|
||||||
if (!message.inGuild()) {
|
* Hikari.on(Events.MessageCreate, (message) => {
|
||||||
void directMessageCreate(hikari, message);
|
* if (!message.inGuild()) {
|
||||||
return;
|
* void directMessageCreate(hikari, message);
|
||||||
}
|
* return;
|
||||||
void guildMessageCreate(hikari, message);
|
* }
|
||||||
});
|
* void guildMessageCreate(hikari, message);
|
||||||
|
* });
|
||||||
|
*/
|
||||||
|
|
||||||
hikari.on(Events.InteractionCreate, (interaction) => {
|
hikari.on(Events.InteractionCreate, (interaction) => {
|
||||||
if (interaction.isChatInputCommand()) {
|
if (interaction.isChatInputCommand()) {
|
||||||
|
|||||||
+1
-1
@@ -18,7 +18,7 @@
|
|||||||
"@nhcarrigan/eslint-config": "5.2.0",
|
"@nhcarrigan/eslint-config": "5.2.0",
|
||||||
"@nhcarrigan/typescript-config": "4.0.0",
|
"@nhcarrigan/typescript-config": "4.0.0",
|
||||||
"eslint": "9.30.1",
|
"eslint": "9.30.1",
|
||||||
"turbo": "2.8.11",
|
"turbo": "2.8.10",
|
||||||
"typescript": "5.8.3"
|
"typescript": "5.8.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
+29
-29
@@ -18,8 +18,8 @@ importers:
|
|||||||
specifier: 9.30.1
|
specifier: 9.30.1
|
||||||
version: 9.30.1(jiti@2.4.2)
|
version: 9.30.1(jiti@2.4.2)
|
||||||
turbo:
|
turbo:
|
||||||
specifier: 2.8.11
|
specifier: 2.8.10
|
||||||
version: 2.8.11
|
version: 2.8.10
|
||||||
typescript:
|
typescript:
|
||||||
specifier: 5.8.3
|
specifier: 5.8.3
|
||||||
version: 5.8.3
|
version: 5.8.3
|
||||||
@@ -4618,38 +4618,38 @@ packages:
|
|||||||
resolution: {integrity: sha512-3T3T04WzowbwV2FDiGXBbr81t64g1MUGGJRgT4x5o97N+8ArdhVCAF9IxFrxuSJmM3E5Asn7nKHkao0ibcZXAg==}
|
resolution: {integrity: sha512-3T3T04WzowbwV2FDiGXBbr81t64g1MUGGJRgT4x5o97N+8ArdhVCAF9IxFrxuSJmM3E5Asn7nKHkao0ibcZXAg==}
|
||||||
engines: {node: ^18.17.0 || >=20.5.0}
|
engines: {node: ^18.17.0 || >=20.5.0}
|
||||||
|
|
||||||
turbo-darwin-64@2.8.11:
|
turbo-darwin-64@2.8.10:
|
||||||
resolution: {integrity: sha512-XKaCWaz4OCt77oYYvGCIRpvYD4c/aNaKjRkUpv+e8rN3RZb+5Xsyew4yRO+gaHdMIUhQznXNXfHlhs+/p7lIhA==}
|
resolution: {integrity: sha512-A03fXh+B7S8mL3PbdhTd+0UsaGrhfyPkODvzBDpKRY7bbeac4MDFpJ7I+Slf2oSkCEeSvHKR7Z4U71uKRUfX7g==}
|
||||||
cpu: [x64]
|
cpu: [x64]
|
||||||
os: [darwin]
|
os: [darwin]
|
||||||
|
|
||||||
turbo-darwin-arm64@2.8.11:
|
turbo-darwin-arm64@2.8.10:
|
||||||
resolution: {integrity: sha512-VvynLHGUNvQ9k7GZjRPSsRcK4VkioTfFb7O7liAk4nHKjEcMdls7GqxzjVWgJiKz3hWmQGaP9hRa9UUnhVWCxA==}
|
resolution: {integrity: sha512-sidzowgWL3s5xCHLeqwC9M3s9M0i16W1nuQF3Mc7fPHpZ+YPohvcbVFBB2uoRRHYZg6yBnwD4gyUHKTeXfwtXA==}
|
||||||
cpu: [arm64]
|
cpu: [arm64]
|
||||||
os: [darwin]
|
os: [darwin]
|
||||||
|
|
||||||
turbo-linux-64@2.8.11:
|
turbo-linux-64@2.8.10:
|
||||||
resolution: {integrity: sha512-cbSn37dcm+EmkQ7DD0euy7xV7o2el4GAOr1XujvkAyKjjNvQ+6QIUeDgQcwAx3D17zPpDvfDMJY2dLQadWnkmQ==}
|
resolution: {integrity: sha512-YK9vcpL3TVtqonB021XwgaQhY9hJJbKKUhLv16osxV0HkcQASQWUqR56yMge7puh6nxU67rQlTq1b7ksR1T3KA==}
|
||||||
cpu: [x64]
|
cpu: [x64]
|
||||||
os: [linux]
|
os: [linux]
|
||||||
|
|
||||||
turbo-linux-arm64@2.8.11:
|
turbo-linux-arm64@2.8.10:
|
||||||
resolution: {integrity: sha512-+trymp2s2aBrhS04l6qFxcExzZ8ffndevuUB9c5RCeqsVpZeiWuGQlWNm5XjOmzoMayxRARZ5ma7yiWbGMiLqQ==}
|
resolution: {integrity: sha512-3+j2tL0sG95iBJTm+6J8/45JsETQABPqtFyYjVjBbi6eVGdtNTiBmHNKrbvXRlQ3ZbUG75bKLaSSDHSEEN+btQ==}
|
||||||
cpu: [arm64]
|
cpu: [arm64]
|
||||||
os: [linux]
|
os: [linux]
|
||||||
|
|
||||||
turbo-windows-64@2.8.11:
|
turbo-windows-64@2.8.10:
|
||||||
resolution: {integrity: sha512-3kJjFSM4yw1n9Uzmi+XkAUgCae19l/bH6RJ442xo7mnZm0tpOjo33F+FYHoSVpIWVMd0HG0LDccyafPSdylQbA==}
|
resolution: {integrity: sha512-hdeF5qmVY/NFgiucf8FW0CWJWtyT2QPm5mIsX0W1DXAVzqKVXGq+Zf+dg4EUngAFKjDzoBeN6ec2Fhajwfztkw==}
|
||||||
cpu: [x64]
|
cpu: [x64]
|
||||||
os: [win32]
|
os: [win32]
|
||||||
|
|
||||||
turbo-windows-arm64@2.8.11:
|
turbo-windows-arm64@2.8.10:
|
||||||
resolution: {integrity: sha512-JOM4uF2vuLsJUvibdR6X9QqdZr6BhC6Nhlrw4LKFPsXZZI/9HHLoqAiYRpE4MuzIwldCH/jVySnWXrI1SKto0g==}
|
resolution: {integrity: sha512-QGdr/Q8LWmj+ITMkSvfiz2glf0d7JG0oXVzGL3jxkGqiBI1zXFj20oqVY0qWi+112LO9SVrYdpHS0E/oGFrMbQ==}
|
||||||
cpu: [arm64]
|
cpu: [arm64]
|
||||||
os: [win32]
|
os: [win32]
|
||||||
|
|
||||||
turbo@2.8.11:
|
turbo@2.8.10:
|
||||||
resolution: {integrity: sha512-H+rwSHHPLoyPOSoHdmI1zY0zy0GGj1Dmr7SeJW+nZiWLz2nex8EJ+fkdVabxXFMNEux+aywI4Sae8EqhmnOv4A==}
|
resolution: {integrity: sha512-OxbzDES66+x7nnKGg2MwBA1ypVsZoDTLHpeaP4giyiHSixbsiTaMyeJqbEyvBdp5Cm28fc+8GG6RdQtic0ijwQ==}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
|
|
||||||
twitter-api-v2@1.28.0:
|
twitter-api-v2@1.28.0:
|
||||||
@@ -10192,32 +10192,32 @@ snapshots:
|
|||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
|
|
||||||
turbo-darwin-64@2.8.11:
|
turbo-darwin-64@2.8.10:
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
turbo-darwin-arm64@2.8.11:
|
turbo-darwin-arm64@2.8.10:
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
turbo-linux-64@2.8.11:
|
turbo-linux-64@2.8.10:
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
turbo-linux-arm64@2.8.11:
|
turbo-linux-arm64@2.8.10:
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
turbo-windows-64@2.8.11:
|
turbo-windows-64@2.8.10:
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
turbo-windows-arm64@2.8.11:
|
turbo-windows-arm64@2.8.10:
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
turbo@2.8.11:
|
turbo@2.8.10:
|
||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
turbo-darwin-64: 2.8.11
|
turbo-darwin-64: 2.8.10
|
||||||
turbo-darwin-arm64: 2.8.11
|
turbo-darwin-arm64: 2.8.10
|
||||||
turbo-linux-64: 2.8.11
|
turbo-linux-64: 2.8.10
|
||||||
turbo-linux-arm64: 2.8.11
|
turbo-linux-arm64: 2.8.10
|
||||||
turbo-windows-64: 2.8.11
|
turbo-windows-64: 2.8.10
|
||||||
turbo-windows-arm64: 2.8.11
|
turbo-windows-arm64: 2.8.10
|
||||||
|
|
||||||
twitter-api-v2@1.28.0: {}
|
twitter-api-v2@1.28.0: {}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user