Question

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

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


Submit an answer

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.

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

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.

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 https://github.com/squeek502/heroku-buildpack-luvit

Here’s a little example template for it https://github.com/MegaPiggy/discordia-heroku-template