GithubHelp home page GithubHelp logo

destinyplayer / discordchat Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shadowfacts/discordchat

0.0 1.0 0.0 5.99 MB

Forge (server-side only) mod to relay chat from MC to Discord and vice versa.

Java 100.00%

discordchat's Introduction

DiscordChat

Discord chat is a simple server-side mod that connects Minecraft communication with a Discord server.

Config

settings {
    B:enabled=true

    # Required settings
    S:[email protected]
    S:password=userspassword
    S:serverId=000000000000000000
    S:channels=general 
    
    # Optional settings
    B:sendPlayerDeathMessages=true
    B:sendPlayerAchievementMessages=true
    B:sendPlayerJoinLeaveMessages=true

    # Inbound message formatting
    ## $1 is discord channel, $2 is discord username and $3 is the message
    S:discordToMCFormat=$1 \u00BB <$2> $3

    # Outbound message formatting
    ## $1 is minecraft username and $2 is message
    S:mcToDiscordFormat=MC \u00BB <$1> $2
    S:deathMessageFormat=MC \u00BB $2
    S:achievementMessageFormat=MC \u00BB $1 has just earned the achievement $2
    S:playerJoinMessageFormat=MC \u00BB $1 joined the game
    S:playerLeaveMessageFormat=MC \u00BB $1 left the game
}

An example configuration file is seen above. You can copy the example into config/shadowfacts/DiscordChat.cfg on your server and then alter the following required values:

  • email: The email of the user you wish to use for connecting to Discord (you can use your own account, normal Discord activity is not affected)
  • password: The password belonging to the account you wish to use for connecting (you can use your own account, normal Discord activity is not affected)
  • channels: A return separated list of channels you want to be relayed to MC and MC chat should be relayed to
  • serverId: The ID number of the Discord server

You can find your Discord server ID in Discord under Server Settings -> Widget -> Server ID.

discordchat's People

Contributors

shadowfacts avatar danpolanco avatar destinyplayer avatar

Watchers

James Cloos 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.