diff options
| author | 8cy <[email protected]> | 2020-05-05 17:20:56 -0700 |
|---|---|---|
| committer | 8cy <[email protected]> | 2020-05-05 17:20:56 -0700 |
| commit | a9736fde2706e37aac691184e78f7686e1dd76aa (patch) | |
| tree | 941e121d9df6bf56e0bef3e9f887cbc56a843946 /src/bot.ts | |
| parent | update dependencies (diff) | |
| download | dep-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.ts | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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() |