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

September 24, 2018 686 views
API

Hi,

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

1 Answer
jarland MOD 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:
https://www.youtube.com/watch?v=JGOyz01Q-t8

How to SSH with PuTTY:
https://www.youtube.com/watch?v=68qflxVvDvw

How to edit files on Linux over SSH:
https://www.howtogeek.com/howto/42980/the-beginners-guide-to-nano-the-linux-command-line-text-editor/

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

Jarland

Have another answer? Share your knowledge.