mirror of
https://github.com/MrUnknownDE/UnknownAI.git
synced 2026-04-19 14:33:46 +02:00
lets go?
This commit is contained in:
0
configs/config.json
Normal file
0
configs/config.json
Normal file
21
main.js
Normal file
21
main.js
Normal file
@@ -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)
|
||||||
25
package.json
Normal file
25
package.json
Normal file
@@ -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"
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user