Skip to content

pandya-hiren-a/DigitalOceanBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DigitalOceanBot

DigitalOcean droplets status bot Helps to retrieve the status of all the droplets available on DigitalOcean. Vultr Instances Status bot Helps to retrieve the status of all the instances available on Vultr.

Environment Variables

  1. FLASK_APP - Entry point for the flask app. In this case, dostatbot.py
  2. APP_ENV - Development/Testing/Debugging/Production
  3. SLACK_CHANNEL - Name of the channel where the bot should post its replies
  4. DIGITAL_OCEAN_TOKEN - Token generated from DigitalOcean to access their API
  5. SLACK_BOT_TOKEN - Bot token generated from Slack API
  6. SECRET - Slack secret which shall be passed along with token to access slack api
  7. OAuth - OAuth token generated on slack
  8. VULTR_TOKEN - Vultr API Token to allow interaction with vultr instances.

Usage

  1. /dostat help - Displays all possible arguments for this command
  2. /dostat droplets - Provides a list of all the available droplets with their IPs and status on digitalocean
  3. /dostat status [droplet_name] - Provides the status of any individual droplet with its IP address
  4. /dostat reboot [droplet_name] - Reboots mentioned droplet on digitalocean
  5. /vustat help - Displays all possible arguments for this command
  6. /vustat droplets - Provides a list of all the available instances with their IPs and status from Vultr
  7. /vustat status [instance_label] - Provides the status of any individual instance with its IP address
  8. /vustat reboot [instance_label] - Reboots mentioned instance on vultr
  9. /ipfile help - Displays all possible arguments for this command 10./ipfile new - Gets the IP addresses of all the instances and droplets, prepares a text file with that data, and uploads the file on the general channel

Development progress

  • Initial development
  • Heroku deployable code and dependencies
  • Individual droplet status functionality
  • Reboot droplet command
  • Add request cache to reduce overhead on the server, works in the case of status command
  • Add Vultr API Integration and match the functionality with digitalocean interactions
  • Add another slash command /vustat for vultr status updates
  • Add ip collection feature (All IP in one file)
  • Add more commands to interact with droplets of digitalocean
  • Add more commands to interact with instances of vultr
  • Add ssh connection functionality (Ongoing - Branch: commands_over_ssh_to_servers)

About

DigitalOcean droplets status bot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages