Skip to content

Installing Discordia

SinisterRectus edited this page Sep 25, 2017 · 4 revisions

Discordia requires the Luvit framework to run. It will not run on a standard installation of Lua or LuaJIT. Luckily, installing both Luvit and Discordia is easy. Follow these steps:

Installing Luvit

Using a command prompt or terminal, create a new directory where you'd like to install the Luvit executables. For example:

  • cd C:\ (on Windows) or cd ~/ (on Linux)
  • mkdir luvit
  • cd luvit

After you have done this, you can install Luvit using the instructions at https://luvit.io/install.html.

Enter dir (on Windows) or ls (on Linux) to make sure that you have a lit, luvi, and luvit executable. If you do not, then your installation did not work.

Installing Discordia

With the three executables installed, run lit install SinisterRectus/discordia (remember to prefix with ./ if on Linux). Note the lowercase D in "discordia" here. The project is officially named Discordia, but lit package names are traditionally lowercase. This should install the latest version of Discordia and its dependencies into a folder named deps. Make sure that folder appeared.

Updating Discordia

If you are trying to update Discordia, lit will not handle this automatically. You must either install the new version to a new directory (recommended) or delete your old version of Discordia and its dependencies before installing the new version.


Prev: Setting up a Discord application | Next : Writing Your First Bot

Clone this wiki locally