repl.it
@TheDrone7/

Starboard-new

Nodejs

No description

fork
loading
Files
  • index.js
  • commands
  • db
  • languages
  • public
  • Packager files
  • package-lock.json
  • package.json
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
const express = require('express');
const app = express();
app.use(express.static('public'));

const { Client } = require('klasa');

Client.prototype.db = require('./db/db');

const config = new Object();
config.fetchAllMembers = true;
config.prefix = 's!';
config.commandEditing = true;
config.commandLogging = true;
config.typing = true;
config.readyMessage = client => `Logged in as ${client.user.tag}`;
config.presence = {
  activity: {
    name: 'the STARBOARD',
    type: 'WATCHING'
  }
}
config.partials = ['REACTION', 'MESSAGE']
config.createPiecesFolders = false;
config.ownerID = '374886124126208000';
config.disabledCorePieces = ['commands', 'languages']

const bot = new Client(config);

/* 
bot.login(process.env.TOKEN).then(()=> {
  app.listen(3000, ()=> {
    bot.emit('log', 'Server ready.');
  });
});
*/
Fetching token
?