summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
author8cy <[email protected]>2020-05-21 20:38:53 -0700
committer8cy <[email protected]>2020-05-21 20:38:53 -0700
commit953cd82f0a11f9b0b96d7588069f4c2925f8cf3e (patch)
tree9f3b9e15be101404e1485dc965fe83fa3ad5c456 /src
parentfix bot file location (diff)
downloaddep-core-953cd82f0a11f9b0b96d7588069f4c2925f8cf3e.tar.xz
dep-core-953cd82f0a11f9b0b96d7588069f4c2925f8cf3e.zip
take down api
Diffstat (limited to 'src')
-rw-r--r--src/bot.ts4
-rw-r--r--src/commands/bot/api.ts5
2 files changed, 5 insertions, 4 deletions
diff --git a/src/bot.ts b/src/bot.ts
index e826f53..7900d7a 100644
--- a/src/bot.ts
+++ b/src/bot.ts
@@ -1,7 +1,7 @@
import config from './config.json';
import { CommandoClient } from 'discord.js-commando';
// @ts-ignore no default import
-import WS from './server';
+//import WS from './server';
import Welcome from './models/welcome.js';
import Goodbye from './models/goodbye.js';
import mongoose from 'mongoose';
@@ -18,7 +18,7 @@ const client = new CommandoClient({
invite: 'https://discord.gg/DVwXUwx'
});
-const ws = new WS(process.env.PORT, client)
+//const ws = new WS(process.env.PORT, client)
client.registry
.registerDefaultTypes()
diff --git a/src/commands/bot/api.ts b/src/commands/bot/api.ts
index 7a9cbf3..98486a9 100644
--- a/src/commands/bot/api.ts
+++ b/src/commands/bot/api.ts
@@ -20,7 +20,8 @@ module.exports = class APIBot extends Command {
}
run(msg: CommandoMessage) {
let emb = new MessageEmbed()
- .setDescription('Here\'s a link to my [API](http://uwufier.kyzer.co/api/v1/). (To use, copy the given URL, then append the API endpoints looking to get to it.) As for documentation, it is currently under heavy re-writing. As soon as the documentation goes live, you can read through it on the [official uwufier website](https://kyzer.co/discord/bots/uwufier/)! ' + emoji.random())
- msg.say(emb)
+ //.setDescription('Here\'s a link to my [API](http://uwufier.kyzer.co/api/v1/). (To use, copy the given URL, then append the API endpoints looking to get to it.) As for documentation, it is currently under heavy re-writing. As soon as the documentation goes live, you can read through it on the [official uwufier website](https://kyzer.co/discord/bots/uwufier/)! ' + emoji.random())
+ .setDescription(`Uwifier's API is currently down. ${emoji.random()}`)
+ msg.say(emb)
}
}; \ No newline at end of file