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

Posted September 24, 2018 2.8k views


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

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.

Submit an Answer
1 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.