Vultr is a provider of high-performance SSD (solid-state drive) cloud servers that boast a global footprint.
vultrDiscordBot is a bot to help you create and destroy servers from vultr directly from Discord.
- Node.js
- NPM
First you need to get your own discord Token from the Discord Developer Portal and invite the bot to your server
Second you need to get your vultr api key from vultr
clone the repository and install the modules :
git clone https://github.com/naseif/vultrDiscordBot.git
cd vultrDiscordBot
npm i
First, rename config.example.json
to config.json
. Now open the config.json
file and add your discord and vultr API tokens.
Specify your own prefix that the bot should listen to e.g "!" and server specs like below
{
"prefix": "", // "!" e.g
"token": "",
"vultrAPI": "",
"server_os": "", // e.g "378" which is Ubuntu 20.04 x64
"server_plan": "", // e.g "vc2-1c-1gb" 1 Core, 1GB RAM Server
"server_region": "" // e.g "ams" Amsterdam
}
For server_os, server_plan and server_region
you always need to pass the id. You can get the id for each from vultr API here : plans, regions, OS
After you have configured the json file simply run : node index.js
You can create the server by sending !create
in any text channels on the server you added the bot to.
To destroy the instance you created just send !destroy
Software contributions are welcome. If you are not a dev, testing and reproting bugs can also be very helpful!
Please open an issue if you have questions, wish to request a feature, etc.