mirror of
https://github.com/SEPPDROID/zoizbot.git
synced 2025-10-22 07:54:28 +00:00
some minor mistakes fixed
This commit is contained in:
@@ -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
|
||||
|
@@ -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": ">"
|
||||
}
|
||||
|
5
zoizbot/package-lock.json
generated
5
zoizbot/package-lock.json
generated
@@ -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",
|
||||
|
@@ -7,8 +7,7 @@
|
||||
"name": "Mr. sex"
|
||||
},
|
||||
"dependencies": {
|
||||
"discord.js": "^12.3.1",
|
||||
"typescript": "^4.0.3"
|
||||
"discord.js": "^12.3.1"
|
||||
},
|
||||
"devDependencies": {}
|
||||
}
|
||||
|
@@ -5,7 +5,8 @@
|
||||
<Name>zoizbot</Name>
|
||||
<RootNamespace>zoizbot</RootNamespace>
|
||||
<SaveNodeJsSettingsInProjectFile>True</SaveNodeJsSettingsInProjectFile>
|
||||
<NodeExePath>C:\Program Files\nodejs\node.exe</NodeExePath>
|
||||
<NodeExePath>
|
||||
</NodeExePath>
|
||||
<JavaScriptTestFramework>ExportRunner</JavaScriptTestFramework>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
@@ -32,9 +33,9 @@
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="app.js" />
|
||||
<Content Include="conf.json">
|
||||
<AdditionalFiles Include="conf.json">
|
||||
<SubType>Code</SubType>
|
||||
</Content>
|
||||
</AdditionalFiles>
|
||||
<Content Include="package.json" />
|
||||
<Content Include="README.md" />
|
||||
</ItemGroup>
|
||||
|
Reference in New Issue
Block a user