import bug fixes

This commit is contained in:
unknowableshade committed 2021-11-02 11:50:01 +03:00
1 parent 09024f67e2
commit f871abe6ca
3 files changed
+3 -4

No files matched your search

-1
View File
@@ -31,7 +31,6 @@
</PropertyGroup>
<ItemGroup>
<Content Include=".gitignore" />
<Content Include="Dockerfile" />
<Content Include="package.json" />
<Content Include="README.md" />
<Content Include="tsconfig.json" />
+2 -2
View File
@@ -2,9 +2,9 @@
import { MyClient } from "./types/Client";
const token = process.env.DISCORD_TOKEN;
const token = "NzIyMjE0MTA3MjM5MDIyNjcy.Xuf0TQ.UwFKXzc8cj_oVz_DQZn17whgoGo";
const client = new MyClient("./dist/commands", "./dist/events");
const client = new MyClient("./commands", "./events");
client.on("ready", () => {
if (!client.user)
+1 -1
View File
@@ -21,7 +21,7 @@ export class MyClient extends Client {
const cmdFiles = readdirSync(commandsPath).filter(file => file.endsWith(".js"));
for (const file of cmdFiles) {
import(`${commandsPath}/${file}`).then((command) => {
import(`.${commandsPath}/${file}`).then((command) => {
const name = command.data.name;
this.restCommands.push(command.data);
this.commands.set(name, command);