Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ahmedhalat/servermanager
Discord bot for starting and stoping VM
https://github.com/ahmedhalat/servermanager
Last synced: about 1 month ago
JSON representation
Discord bot for starting and stoping VM
- Host: GitHub
- URL: https://github.com/ahmedhalat/servermanager
- Owner: AhmedHalat
- Created: 2020-03-31T00:52:51.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-08-27T01:22:06.000Z (over 3 years ago)
- Last Synced: 2024-10-25T06:27:39.248Z (3 months ago)
- Language: JavaScript
- Size: 31.3 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ServerManager
Discord bot for starting and stoping VM
- 2 commands are set up by default, one for a pixelmon server, and one for a vanilla server
- The dialogflow branch has one for a windows server, and a text matcher for any server with the user specified name. Try @ServerManager start ${instance_name}
- Create custom commands by changing the variable names at the top for pixelmon and vanilla or creating more command functions## Installation
- Download the project onto your machine
- Run `npm i` to install to get the necessary packages
- Downlaod a gcloud service account credientials as a JSON. Make sure the account has access to google cloud compute instances, [Google Authentication](https://cloud.google.com/docs/authentication/getting-started)## Preparation
- Store your discord token and name to the token and name variable in Servermanager.js
- Run `export GOOGLE_APPLICATION_CREDENTIALS="/path-to-file/Servers-432f295fec07.json"` in the project where "Servers-432f295fec07.json" is the name of your downloaded service account JSON## Running
- `node ServerManager.js`
- Be sure to leave the server running if you want the bot to stay online