From 603e7a519a878463b9316bd1ee0fa0abff4c85da Mon Sep 17 00:00:00 2001 From: MrUnknownDE Date: Mon, 9 May 2022 17:46:20 +0200 Subject: [PATCH] lets go? --- configs/config.json | 0 main.js | 21 +++++++++++++++++++++ package.json | 25 +++++++++++++++++++++++++ 3 files changed, 46 insertions(+) create mode 100644 configs/config.json create mode 100644 main.js create mode 100644 package.json diff --git a/configs/config.json b/configs/config.json new file mode 100644 index 0000000..e69de29 diff --git a/main.js b/main.js new file mode 100644 index 0000000..7ddc700 --- /dev/null +++ b/main.js @@ -0,0 +1,21 @@ +const Discord = require('discord.js'); +const config = require('./src/config.json'); +const fs = require('fs'); +const db = require('quick.db'); +const path = require('path'); +const client = new Discord.Client(); +client.commands = new Discord.Collection(); +client.aliases = new Discord.Collection(); +const { Player } = require('discord-player'); +const player = new Player(client); +client.player = player; +client.emotes = require('./configs/emotes.json') +client.filters = require('./configs/filters.json'); +["aliases", "commands"].forEach(cmd => client[cmd] = new Discord.Collection()); +["console", "command", "event"].forEach(events => require(`./handlers/${events}`)(client)); +client.categories = fs.readdirSync('./commands'); +// EVENTS +client.on('ready', async() => { + console.log('UnknownAI Started!'); +}); +client.login(config.token) \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 0000000..5eccc80 --- /dev/null +++ b/package.json @@ -0,0 +1,25 @@ +{ + "name": "unknownai", + "version": "1.0.0", + "description": "a bot from me (a noob) in NodeJS", + "main": "main.js", + "scripts": { + "test": "debug" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/MrUnknownDE/UnknownAI.git" + }, + "keywords": [ + "discord", + "bot", + "german", + "discordbot" + ], + "author": "MrUnknownDE", + "license": "MIT", + "bugs": { + "url": "https://github.com/MrUnknownDE/UnknownAI/issues" + }, + "homepage": "https://github.com/MrUnknownDE/UnknownAI#readme" +}