How to setup a VPS for my Lua Discord bot? (Luvit)


I’ve recently been working on a Discord bot using Discordia, and wanted to know how I could set up a VPS server so it runs 24/7. Other than processing power and storage, I have no clue what I’m supposed to be doing. I’ve heard Windows users have to use PuTTY to connect, so I have that installed. What now?

Even when I get it set up, how could I transfer my files? How would editing the code work? Sorry, I’m a total newbie at this sort of stuff.

I just need clarification before I actually consider buying something. I don’t want to waste my money on something I can’t use or did wrong.

OS: Windows 10 Lang: Lua (Luvit) Lib: Lua Discordia

Submit an answer
Answer a question...

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

DigitalOcean Employee
DigitalOcean Employee badge
September 25, 2018
Accepted Answer

Hey friend!

This is a great question. I’m going to get the worst answer out first. If you’re in any hurry or lack any patience, you are looking at walking into dangerous territory. I want to do everything I can to empower people to learn how to use Linux servers, but I deal with users often enough to see certain potential red flags that lead up to table flipping, so I want you to know that going in.

If you’re still reading you must be ready to give it a shot :)

PuTTY is an SSH client, and SSH is a protocol for connecting remotely to a console on a server. The protocol is capable of file transfer, commonly referred to as SFTP. You can use SSH credentials/port for both SSH and SFTP. FileZilla is a popular client for SFTP (don’t mistake for FTP or FTPS).

How to use FileZilla for SFTP:

How to SSH with PuTTY:

How to edit files on Linux over SSH:

Tutorials and Google will be your best friend here for sure.


This is a very old post. But, just in case someone comes across this. You can use the website “Heroku” to host your bot.

If anyone wants to do it. You can use this buildpack

Here’s a little example template for it

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.