Changed to deno suport
This commit is contained in:
parent
f69802edc9
commit
785afbdec5
28 changed files with 531 additions and 88 deletions
|
@ -1,5 +1,5 @@
|
|||
import { Events, Guild } from "discord.js";
|
||||
import { connectToDb, getGuild, addGuild } from "../libs/mysql.js";
|
||||
import { Events, Guild } from "npm:discord.js";
|
||||
import { connectToDb, getGuild, addGuild } from "../libs/mysql.ts";
|
||||
|
||||
export default {
|
||||
name: Events.GuildCreate,
|
||||
|
@ -15,4 +15,4 @@ export default {
|
|||
|
||||
addGuild(connection, guild.id);
|
||||
},
|
||||
};
|
||||
};
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { Events, GuildMember, EmbedBuilder, AttachmentBuilder } from "discord.js";
|
||||
import { connectToDb, getGuild, getWelcomeConfig } from "../libs/mysql.js";
|
||||
import { createWelcomeImage } from "../libs/imageGeneration.js"
|
||||
import { Events, GuildMember, EmbedBuilder, AttachmentBuilder } from "npm:discord.js";
|
||||
import { connectToDb, getGuild, getWelcomeConfig } from "../libs/mysql.ts";
|
||||
import { createWelcomeImage } from "../libs/imageGeneration.ts"
|
||||
|
||||
export default {
|
||||
name: Events.GuildMemberAdd,
|
||||
|
@ -44,4 +44,4 @@ export default {
|
|||
}
|
||||
}
|
||||
},
|
||||
};
|
||||
};
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Events, Interaction } from "discord.js";
|
||||
import { Events, Interaction } from "npm:discord.js";
|
||||
|
||||
export default {
|
||||
name: Events.InteractionCreate,
|
||||
|
@ -18,4 +18,4 @@ export default {
|
|||
}
|
||||
}
|
||||
},
|
||||
};
|
||||
};
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { Events, Message } from "discord.js";
|
||||
import { getChatResponse, MistralMessage, Models, InputPrice, OutputPrice, ReturnedValue } from "../libs/mistralai.js";
|
||||
import { User, connectToDb, addUser, getUser, incrementQuota } from "../libs/mysql.js";
|
||||
import { getMessages } from "../libs/discord.js";
|
||||
import { Events, Message } from "npm:discord.js";
|
||||
import { getChatResponse, MistralMessage, Models, InputPrice, OutputPrice, ReturnedValue } from "../libs/mistralai.ts";
|
||||
import { User, connectToDb, addUser, getUser, incrementQuota } from "../libs/mysql.ts";
|
||||
import { getMessages } from "../libs/discord.ts";
|
||||
|
||||
export default {
|
||||
name: Events.MessageCreate,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { Events, Client } from "discord.js";
|
||||
import { checkReset } from "../libs/quotaReset.js";
|
||||
import { Events, Client } from "npm:discord.js";
|
||||
import { checkReset } from "../libs/quotaReset.ts";
|
||||
|
||||
export default {
|
||||
name: Events.ClientReady,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue