Giter Club home page Giter Club logo

fabric---discord-link's Introduction

Fabric<->Discord Link

Fabric-Discord-Link is a lightweight server mod for the fabric mod loader which links your minecraft server and it's chat to a discord server via your very own discord bot.

Features

  • Configure a Chat channel to chat between your minecraft world and a discord channel
  • Configure a Log channel to show server messages and admin actions
  • Use commands to get live information on your Minecraft Servers status:
    • !status - Shows number of players that are online right now and the server's uptime
    • !uptime - Shows server's uptime
    • !playercount - Shows number of online players / server player maximum
    • !playerlist - Shows list of names of online players
  • Configure custom messages for
    • Server starting
    • Server started
    • Server stopping
    • Server stopped
    • Player joining server
    • Player joining server with a different name to their known name
    • Player leaving server
    • Player making advancement
    • Player completing challenge
    • Player reaching goal
    • Prefix for death messages (i.e. emojis like :skull_crossbones:)
    • Postfix for death messages
    • Discord channel description
  • Configure Emojis
  • Configure how messages from Discord appear in the ingame chat (default is senders name in brackets to distinguish from ingame player's messages)

Installation

Dependencies

For Minecraft 1.14.4, 1.15.2 and any version (including snapshots) newer than 1.16.1:

Fabric-Discord-Link requires Fabric API to work. The Fabric-API jar needs to be in your mod folder.

For other Minecraft version (including snapshots):

No dependencies required.

Obtaining the binaries

The release binaries are available on curseforge and modrinth.

After downloading the latest version, just drop the jar into the mods folder.

Building from source

  1. Download the repository
  2. Follow this guide to setup gradle and build the project
  3. Drop the resulting jar into the fabric mod folder

Acquiring and configuring a Discord Bot

  1. Go to the discord developer portal and register a new Application
  2. Register a new Bot for the application in the <Bot> tab to the left
  3. Toggle <Server Members Intent> to on under <Priviledged Gateway Intents> after creating a bot
  4. In the <OAuth2> Tab to the left, select the <bot> option under <Scopes> and select the options <View Channels> and <Send Messages>
    • Also select the <Manage Channels> permissions if you intend to enable custom channel descriptions.
  5. Copy the URL generated under <Scopes> and open it in a new tab to add the bot to your discord server

Configuring Fabric-Discord-Link

  1. Start your minecraft server once to let Fabric-Discord-Link generate it's default config <fdlink.json>
  2. Turn your server back off
  3. Copy your Bots Token from the Discord Developer Portal and paste it into the empty double quotes behind <"token"> in the config
  4. Obtain the channel IDs of the channels that you want your bot to function in (these can be from separate discord servers). To do this, you need to enable Discords Developer mode in your Discord Settings under <Appearance>. Afterwards you can right click channels and select <Copy ID> at the bottom
  5. Paste the Discord Chat and/or Log Channel's IDs into the appropriate locations in the config. The IDs need to be in double quotes inside the brackets. If you have more than one Chat or Log Channel you need to separate the channel IDs inside the brackets with commas (no comma behind the last ID)
  6. Configure the other settings in the config to your liking
    • When you set a certain message type to false, those messages will still go to any logChannel you configured, but they won't be sent to chatChannels
    • When minecraftToDiscordDiscriminator is set to true, messages sent from Discord into Minecraft will have the exact Discord name, e.g. Bob#1234 instead of just Bob
  7. Restart your server

fabric---discord-link's People

Contributors

alexanderritter02 avatar altrisi avatar dependabot-preview[bot] avatar dkolb avatar ennuil avatar ev1dentfir3 avatar gab9281 avatar ivan-khar avatar kwvanderlinde avatar manuelgrabowski avatar matthias4217 avatar mightyknight avatar mran0nym avatar nunzioardi avatar pegasusepsilon avatar pepperlola avatar smonnnn avatar thecatcore avatar thedude7054 avatar toooair avatar v-tron avatar yhrc avatar zedekblue avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.