remove unused imports
All checks were successful
release-tag / release-image (push) Successful in 23s
All checks were successful
release-tag / release-image (push) Successful in 23s
This commit is contained in:
parent
0341a70746
commit
50d8d9347c
@ -1,9 +1,6 @@
|
||||
import { Commands, type CommandsType } from "commands";
|
||||
import {
|
||||
ChannelType,
|
||||
Client,
|
||||
Events,
|
||||
IntentsBitField,
|
||||
type ButtonInteraction,
|
||||
type CacheType,
|
||||
type ChatInputCommandInteraction,
|
||||
@ -13,7 +10,6 @@ import {
|
||||
import client from "lib/client";
|
||||
import EventEmitter from "node:events";
|
||||
import DiscordService from "services/discord.service";
|
||||
import config from "config";
|
||||
import { WaterMeService } from "actions/waterMe/waterMe.service";
|
||||
import { MedicationService } from "actions/medication/medication.service";
|
||||
import { HelpService } from "actions/help/help.service";
|
||||
@ -52,9 +48,8 @@ export default class DiscordController extends EventEmitter {
|
||||
client.on("interactionCreate", this.handleInteraction.bind(this));
|
||||
|
||||
client.on("messageCreate", async (message) => {
|
||||
console.log(message.id)
|
||||
if (message.channel.type === ChannelType.DM
|
||||
) {
|
||||
console.log(message.id);
|
||||
if (message.channel.type === ChannelType.DM) {
|
||||
console.log("got msg");
|
||||
this.dmService.forward(message);
|
||||
}
|
||||
|
@ -1,6 +1,4 @@
|
||||
import { TimestampStyles } from "discord.js";
|
||||
import { timestamp } from "drizzle-orm/mysql-core";
|
||||
import { integer, int, sqliteTable, text } from "drizzle-orm/sqlite-core";
|
||||
import { integer, sqliteTable, text } from "drizzle-orm/sqlite-core";
|
||||
|
||||
export const usersTable = sqliteTable("users_table", {
|
||||
id: integer().primaryKey({ autoIncrement: true }),
|
||||
|
@ -1,8 +1,14 @@
|
||||
import config from "config";
|
||||
import { Client, GatewayIntentBits, Partials, ChannelType, Events, IntentsBitField } from "discord.js";
|
||||
import {
|
||||
Client,
|
||||
GatewayIntentBits,
|
||||
Partials,
|
||||
IntentsBitField,
|
||||
} from "discord.js";
|
||||
|
||||
const client = new Client({
|
||||
intents: [IntentsBitField.Flags.Guilds,
|
||||
intents: [
|
||||
IntentsBitField.Flags.Guilds,
|
||||
IntentsBitField.Flags.GuildMembers,
|
||||
IntentsBitField.Flags.GuildModeration,
|
||||
IntentsBitField.Flags.GuildMessages,
|
||||
@ -14,8 +20,9 @@ const client = new Client({
|
||||
IntentsBitField.Flags.DirectMessageTyping,
|
||||
IntentsBitField.Flags.DirectMessagePolls,
|
||||
GatewayIntentBits.DirectMessages,
|
||||
GatewayIntentBits.MessageContent],
|
||||
partials: [Partials.Channel, Partials.Message]
|
||||
GatewayIntentBits.MessageContent,
|
||||
],
|
||||
partials: [Partials.Channel, Partials.Message],
|
||||
});
|
||||
|
||||
await client.login(config.discord.token);
|
||||
|
Loading…
x
Reference in New Issue
Block a user