Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Discord Bot #417

Open
wants to merge 22 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
237 changes: 237 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@
"@types/socket.io": "^3.0.2",
"@types/socket.io-client": "^3.0.0",
"@types/uuid": "^8.3.4",
"discord.js": "^13.6.0",
"husky": "^4.3.8",
"lint-staged": "^12.3.4",
"prettier": "2.5.1",
Expand Down
3 changes: 3 additions & 0 deletions server/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ const defaults = {
SHARD: undefined, // Shard ID of the web server (configure in ecosystem.config.js)
SUBSCRIBER_ROOM_LIMIT: 20, // The maximum number of rooms a subscriber can have
VMWORKER_PORT: 3100, // Port to use for the vmWorker HTTP server
DISCORD_BOT_TOKEN: '', // Optional
DISCORD_SERVER_ID: '', // Optional, ID of the discord server
DISCORD_SUB_ROLE_ID: '', // optional, ID of subscriber role
VM_ASSIGNMENT_TIMEOUT: 120, // Number of seconds to wait for a VM before failing
};

Expand Down
Loading