Compare commits
No commits in common. 'e3eb892ee41d85448e3c77d21995e398d91523c3' and 'c5eba642d0bbe21739be2f27bb6ce4c56343bc2a' have entirely different histories.
e3eb892ee4
...
c5eba642d0
@ -1,13 +1,7 @@ |
||||
const express = require('express'); |
||||
const api = express(); |
||||
|
||||
module.exports = (client) => { |
||||
const api = express(); |
||||
client.api = {wubzy: {}, natsuki: {}}; |
||||
client.api.wubzy.app = api; |
||||
api.get('/', (req, res) => res.send("You've reached the wubzy.xyz API. If you're looking for Natsuki's endpoints, please append /natsuki to your query.")); |
||||
api.get('/natsuki', (req, res) => res.send("You've reached Natsuki's API. Receiving this 200 reply indicates that Natsuki is online.")); |
||||
|
||||
client.api.wubzy.app.get('/', (req, res) => res.send("You've reached the wubzy.xyz API. If you're looking for Natsuki's endpoints, please append /natsuki to your query.")); |
||||
client.api.wubzy.app.get('/natsuki', (req, res) => res.send("You've reached Natsuki's status endpoint. Receiving this 200 reply indicates that Natsuki is online. If you're looking for the Natsuki API, it has been moved to natsuki.app")); |
||||
client.api.wubzy.app.get('/natsuki/:any?', (req, res) => res.status(301).send("Natsuki's API permanently resides at natsuki.app")); |
||||
|
||||
client.api.wubzy.server = client.api.wubzy.app.listen(4072, () => console.log(`Ready at ${client.api.wubzy.server.address().address}:${client.api.wubzy.server.address().port}`)); |
||||
}; |
||||
const server = api.listen(4072, () => console.log(`Ready at ${server.address().address}:${server.address().port}`)); |
@ -1,7 +0,0 @@ |
||||
module.exports = { |
||||
name: "ping", |
||||
aliases: ["p"], |
||||
async run(client, message, args, cmd) { |
||||
message.reply("Pong! This is Natsuki v2 you're speaking with \\*tips hat*"); |
||||
} |
||||
}; |
@ -1,8 +1,6 @@ |
||||
module.exports = async client => { |
||||
client.basePrefix = client.config.options.dev ? client.config.options.prefix || client.config.bot.devPrefix : client.config.bot.prefix; |
||||
client.basePrefix = client.config.options.dev ? client.config.options.prefix || "n!" : "n?"; |
||||
|
||||
require('../../startup/run/hello')(client); // startup info
|
||||
require('../../startup/run/setstatus')(client); |
||||
|
||||
require('../../../api/index')(client); |
||||
}; |
Loading…
Reference in new issue