-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbot.js
More file actions
35 lines (30 loc) · 974 Bytes
/
Copy pathbot.js
File metadata and controls
35 lines (30 loc) · 974 Bytes
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.get("/", (request, response) => {
const ping = new Date();
ping.setHours(ping.getHours() - 3);
console.log(`Ping recebido às ${ping.getUTCHours()}:${ping.getUTCMinutes()}:${ping.getUTCSeconds()}`);
response.sendStatus(200);
});
app.listen(process.env.PORT);
require('dotenv').config();
const { MINA_TOKEN, DONO } = process.env;
const { AkairoClient, CommandHandler, InhibitorHandler, ListenerHandler } = require('discord-akairo');
const path = require('path');
class MyClient extends AkairoClient {
constructor() {
super({
ownerID: DONO
}, {
disableMentions: 'everyone'
});
this.commandHandler = new CommandHandler(this, {
directory: path.join(__dirname, "commands"),
prefix: 'xx!'
});
//final
this.commandHandler.loadAll();
}
}
const client = new MyClient();
client.login(MINA_TOKEN);