Coder Social home page Coder Social logo

carrier_log_bot's Introduction

Carrier Log Discord Bot

Carrier Log Bot for Discord for Elite Dangerous.
Give it a bot token and a channel as well as the path to the journal logs, and it will write departures from the carrier into the discord channel.

image

Setup

Cargo is of course required, and you need to set up your own Discord bot

First of all clone the repo:

git clone https://github.com/arne-fuchs/carrier_log_bot.git

Go into the repo and edit the .env file and add the missing parameters.

cd carrier_log_bot && nano .env

  • BOT_TOKEN: The token of your bot. You'll find it if you have set up your own Discord bot under the 'Bot' tab.
  • CHANNEL_ID: The id of the channel, where the bot should write into. Please be aware that the bot needs access to the channel and that the bot is invited to the server. You can get the channel id by right-clicking on the channel and press 'Copy ID'.
  • JOURNAL_PATH: The path where your journals are located. For Linux, it is usually ~/.steam/steam/steamapps/compatdata/359320/pfx/drive_c/users/steamuser/Saved Games/Frontier Developments/Elite Dangerous but it usually needs the absolut path. For Windows it is %USERPROFILE%\\Saved Games\\Frontier Developments\\Elite Dangerous. Don't know the rules there.

It is extremely recommended to use the min-ed-launcher to launch the bot with Elite, or otherwise you always have to do that manually Go into following file after running elite once with the min-ed-launcher: nano ~/.config/min-ed-launcher/settings.json

Add the bot as process (here a linux example):

"processes": [
	{
      	  "fileName": "PATH_TO_GIT_REPO/carrier_log_bot/start.sh",
      	  "arguments": ""
	}
    ],

Now it should start along with Elite. If it works the bot should be online in discord. Please note that the start scripts waits 60 seconds, so you can log in and that the journal log for the session is being created when the bot starts. Otherwise, it will choose an old log and false information will be printed into the channel.

carrier_log_bot's People

Contributors

arne-fuchs 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.