diff --git a/zoizbot/app.js b/zoizbot/app.js
index bff8d4b..d570a3a 100644
--- a/zoizbot/app.js
+++ b/zoizbot/app.js
@@ -1,13 +1,16 @@
'use strict';
-const Discord = require(`discord.js`); // bring us the magic / kom maar op met die voorgeschreven library
-const config = require(`.\conf.json`); // de conf ophalen die we net gemaakt hadden / picking up the config file we made
+const Discord = require("discord.js");// bring us the magic / kom maar op met die voorgeschreven library
const zoizbot = new Discord.Client(); // discord client is now made zoizbot. wat een lol zeg tjonge
+
console.log(`starting zoizbot...`);
+console.log(`loading configuration file...`)
+const config = require("./conf.json"); // de conf ophalen die we net gemaakt hadden / picking up the config file we made
+console.log(`Ready!`) //normally if you would make it properly you would catch any errors when loading the config
zoizbot.on("ready", () => {
console.log(`Zoizbot has started, and is serving ${zoizbot.users.cache.size} users, in ${zoizbot.guilds.cache.size} guilds.`); // you can display anything you want here, all the functions are available in de documentation from discord.js
@@ -16,7 +19,7 @@ zoizbot.on("ready", () => {
});
zoizbot.on("guildCreate", guild => {
- console.log(`Thank you for having me ${guild.name}! I will be serving ${guild.memberCount} members!`); // Join server message in the console
+ console.log(`I have joined ${guild.name}, I will be serving ${guild.memberCount} members!`); // Join server message in the console
message.channel.send(`Hello ${guild.name} thank you for having me!`);
});
@@ -25,4 +28,4 @@ zoizbot.on("guildDelete", guild => {
});
-zoizbot.login(config.token); //reading the "token" from the const config = conf.json
+zoizbot.login(config.token); //reading the "token" from the const config = conf.json btw the one you see is invalid now
diff --git a/zoizbot/conf.json b/zoizbot/conf.json
index b30ca62..ff275b3 100644
--- a/zoizbot/conf.json
+++ b/zoizbot/conf.json
@@ -1,5 +1,4 @@
-{
- "token": "NzY0ODI0MDU3OTcxMjEyMjkw.X4L36Q.L6He_QtvNyPcmDRXBxSa2ze3YtM", // pleur your token here tanks
- "prefix": ">" //, bot will only listen to this prefix. he is a bit oostindisch doof.
- //"someapi": "someapicode" // or something like that if you ever want to add an api for cute dog/cat pictures.
+{
+ "token": "NzY0ODI0MDU3OTcxMjEyMjkw.X4L36Q.L6He_QtvNyPcmDRXBxSa2ze3YtM",
+ "prefix": ">"
}
diff --git a/zoizbot/package-lock.json b/zoizbot/package-lock.json
index c996468..6dfb9cf 100644
--- a/zoizbot/package-lock.json
+++ b/zoizbot/package-lock.json
@@ -98,11 +98,6 @@
"resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-1.0.3.tgz",
"integrity": "sha512-6rt+RN7aOi1nGMyC4Xa5DdYiukl2UWCbcJft7YhxReBGQD7OAM8Pbxw6YMo4r2diNEA8FEmu32YOn9rhaiE5yw=="
},
- "typescript": {
- "version": "4.0.3",
- "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.0.3.tgz",
- "integrity": "sha512-tEu6DGxGgRJPb/mVPIZ48e69xCn2yRmCgYmDugAVwmJ6o+0u1RI18eO7E7WBTLYLaEVVOhwQmcdhQHweux/WPg=="
- },
"ws": {
"version": "7.3.1",
"resolved": "https://registry.npmjs.org/ws/-/ws-7.3.1.tgz",
diff --git a/zoizbot/package.json b/zoizbot/package.json
index a7f47aa..e3c560b 100644
--- a/zoizbot/package.json
+++ b/zoizbot/package.json
@@ -7,8 +7,7 @@
"name": "Mr. sex"
},
"dependencies": {
- "discord.js": "^12.3.1",
- "typescript": "^4.0.3"
+ "discord.js": "^12.3.1"
},
"devDependencies": {}
}
diff --git a/zoizbot/zoizbot.njsproj b/zoizbot/zoizbot.njsproj
index 6d60588..4857110 100644
--- a/zoizbot/zoizbot.njsproj
+++ b/zoizbot/zoizbot.njsproj
@@ -5,7 +5,8 @@
zoizbot
zoizbot
True
- C:\Program Files\nodejs\node.exe
+
+
ExportRunner
@@ -32,9 +33,9 @@
-
+
Code
-
+