Currently the developers are putting their own money into JC2-MP to keep the servers online.

Please take a few seconds of your time and disable your AdBlock plugin for our website.

Ad revenue is not going to developers, it is used purely for covering our hosting costs.


You are also free to donate, which removes all ads from our website!

Patch 0.3 was just released! Full changelog here:

3 years ago

May 27, 2020, 08:34:03 am

Author Topic: JC2MP Discord Bridge  (Read 9785 times)


  • JC2-MP Betatester
  • Sr. Member
  • *****
  • Posts: 452
    • View Profile
Re: JC2MP Discord Bridge
« Reply #15 on: September 27, 2017, 04:21:44 pm »
Updated to use the new and improved Discordia 2.0!


You will need to update your Discordia installation to use this! I strongly recommend installing to a new directory to avoid any dependency conflicts. Or, if you don't use Luvit for anything else, you can completely remove your deps folder and re-install Discordia. (Lit does not have an auto-update feature, unfortunately).

You may also want to update Luvit by running lit update.


The only file that has been changed in the JC2MP module is discordtojcmp.lua:

- Removed guildId parameter (only channelId is required now)
- Replaced assertion with an error log when channel is not found
- Changed initialization to only occur once at startup instead of on every connection
- Discordia 2.0 compatibility fixes

Also notice that the bot token must be prefixed with "Bot " to work. I've done this automatically on the last line of the program. If you have a different method of loading your token (eg, from a file), make sure that it is properly prefixed.