🤖 | A Discord bot for the official ACM UTD Community server.
node --version
# Clone the repository
git clone https://github.com/acmutd/acm-bot.git
# Install required npm modules
npm i
You'll also need a bot configuration (
botconfig.js
) and GCP auth file for Firestore (acm-core.json
) to run the bot. Please contact a bot maintainer for these files. Place the files at the repository root.
# Compile and then start the bot
npm run start
Please ensure that the express port specified in the config is properly forwarded and allowed through any firewalls. This is important for the points system, which relies on webhook requests from TypeForm.
Run with PM2 for auto restart functionality.
If you are running the bot on a remote machine, you can access the MongoDB database from your local computer without having to expose MongoDB ports!
To forward remote MongoDB running on port 27017 to local port 27018:
- Create SSH tunnel
ssh -fN -L 27018:localhost:27017 <your-username>@<remote-ip>
- Connect to MongoDB using MongoDB Compass
mongodb://localhost:27018/?readPreference=primary&appname=MongoDB%20Compass&directConnection=true&ssl=false
The bot is currently hosted on GCP, with Compute Engine. Contact bot maintainers for access.
The current maintainers are Eric Zhang and Nicolas Burnett.