import bug fixes
This commit is contained in:
1 parent
09024f67e2
commit
f871abe6ca
3 files changed
+3
-4
No files matched your search
@@ -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
@@ -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
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user