Skip to content
can repl.it host a discord bot using lua
Profile icon
YandH015

so im making a discord bot using DISCORDIA and LUVIT and I was wondering if Im able to host it on repl.it

(I have NO idea how to host a bot and have never done it before so if someone can go into detail of how to host a LUA DISCORDIA and LUVIT bot then that would be very appreciated!)

You are viewing a single comment. View All
Profile icon
Baconman321

As long as there's a package for it or some way to interact with discord, then yes. From the looks of it, you are using a package. The question is now whether or not you can install the package. If you can, then the answer is yes.

Profile icon
YandH015

@Baconman321
i am using a package called LuaBotDevPackage(It's a folder containing files like LUVIT and DISCORDIA also including the bot's code), but what do you mean install it? and install it where?

Profile icon
Baconman321

@YandH015
You know about packages, right?
Packages need to be installed to be used. For a package to be installed you generally need a package manager. If you are using a package I expect you to know how to set up the package. Take python for instance. If you import something from python and run it you might see a "package manager installing whatever" or something of the sort. Other languages like Nodejs need you to install a package before you can even call it from your program. Check your repl editor. There might be a cube in the upperish left hand side of your screen. Try typing in the package name. If it's there, install it. After that you can do what you do normally. If it isn't then I don't know how to help you because I don't know lua. If this isn't how packages work in Lua then forgive me, because I don't know Lua at all, I'm just trying to help with info I know from other languages :/

Edit:

I realize now that Lua doesn't have explicit support for packages.

As long as you can bring that namespace from LuaBotDevPackage (the variables and functions) into your main program, you are good to go.

Don't understand?
Read more here