You can use this bot to interact with your DigitalOcean droplets from Discord.
My Cloud Labs are hosted on DigitalOcean and we are building a bot so that users can self-service their labs and reset the environments when need be.
!start <droplet_id>
: starts the droplet with the ID droplet_id.
!stop <droplet_id>
: attempts graceful shutdown of the droplet with the ID droplet_id.
!reboot <droplet_id>
: attempts rebooting the droplet with the ID droplet_id.
!test
: Checks whether the bot is responsive.
DIGITALOCEAN_TOKEN
: Find this in your DigitalOcean account. Click APIs and generate an API key.DISCORD_TOKEN
: This is the bot's discord token. Find it in your discord account.DISCORD_ALLOWED_ROLE_ID
: This is the role of Discord users who can command the bot. Find it in Discord Server Settings -> Roles. Copy the role id.DISCORD_GUILD
: The ID of the Discord Server you want to connect to.
- implement startall (or startlab) / stopall (or stoplab) function
- implement forcedshutdown
- implement vpn generation/QR code command?
- implement copying of the whole stack for individuals
- hard reset option (in case a user bricked something)
- whisper/private message person requesting command
- add VPN sending over private message
- refactor prettify function to use client.command() and context PRIO 10000
- BUILD LAB services