Skip to content

Discord Bot to create and delete instances using vultr's RESTful api and more!

License

Notifications You must be signed in to change notification settings

naseif/vultrDiscordBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vultrDiscordBot

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.

Requirements

  • Node.js
  • NPM

Installation

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

Usage

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

Contributions

Software contributions are welcome. If you are not a dev, testing and reproting bugs can also be very helpful!

Questions?

Please open an issue if you have questions, wish to request a feature, etc.

About

Discord Bot to create and delete instances using vultr's RESTful api and more!

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published