summaryrefslogtreecommitdiff
path: root/src/bot.ts
diff options
context:
space:
mode:
author8cy <[email protected]>2020-05-05 17:20:56 -0700
committer8cy <[email protected]>2020-05-05 17:20:56 -0700
commita9736fde2706e37aac691184e78f7686e1dd76aa (patch)
tree941e121d9df6bf56e0bef3e9f887cbc56a843946 /src/bot.ts
parentupdate dependencies (diff)
downloaddep-core-a9736fde2706e37aac691184e78f7686e1dd76aa.tar.xz
dep-core-a9736fde2706e37aac691184e78f7686e1dd76aa.zip
add api, change sementic version tag
because of adding an api, a change was need to Procfile, making it a web process in heroku i also removed unused dependencies from the webserver file and made responses into json objects dont worry, i am using uptime robot ;) - renamed ws to server -changed sementic version from v10.0.0 to v1.10.0, minecraft versions :D
Diffstat (limited to 'src/bot.ts')
-rw-r--r--src/bot.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bot.ts b/src/bot.ts
index 337a772..8334cc8 100644
--- a/src/bot.ts
+++ b/src/bot.ts
@@ -1,6 +1,6 @@
import config from './config.json';
import { CommandoClient } from 'discord.js-commando';
-//import WS from './ws/ws';
+import WS from './server';
import Welcome from './models/welcome.js';
import Goodbye from './models/goodbye.js';
import mongoose from 'mongoose';
@@ -16,7 +16,7 @@ const client = new CommandoClient({
invite: 'https://discord.gg/DVwXUwx'
});
-//var ws = new WS('123456', process.env.PORT, client)
+const ws = new WS(process.env.PORT, client)
client.registry
.registerDefaultTypes()