Skip to content

Gets news posts from the normal Elite Dangerous News, for Elite Dangerous centered discord servers.

License

Notifications You must be signed in to change notification settings

Andrew-J-Larson/elite-dangerous-news-discord-bot

Repository files navigation

Elite Dangerous News Discord Bot

This bot primarily uses the official API provided by Frontier Developments, at: https://cms.elitedangerous.com/api/news

As mentioned on EliteWeek!

Invite this bot to your Discord server!

Links:

For any status updates, I may post something at one of the previous links, or at my Twitter: Twitter

Appearance

Example Information

Want to modify and run your own instance?

Since this bot was made with Node.js, you'll need to make sure to install the latest LTS version as that's what I've been using with this project.

Initial Setup

  1. If you don't already have git installed, please do so, and then run git clone https://github.com/Andrew-J-Larson/elite-dangerous-news-discord-bot.
  2. Then, before trying to run the bot, you'll need to go into the folder and update the packages by running npm update.
  3. Make sure you already have filled out a new developer application with discord so you can retrieve the bot token, to put into config in the next step.
  4. You'll need to go to the directory above the git clone (e.g. ../elite-dangerous-news-discord-bot), and create a file named elite-dangerous-news-discord-bot.config containing the following, while replacing [YOUR BOT TOKEN HERE] with your application's bot token:
{
        "BOT_TOKEN": "[YOUR BOT TOKEN HERE]"
}
  1. Afterwards, you can go back into the git clone and start the bot with npm start. * Not required, but I recommend using pm2 (or another production process manager) for node, as it'll make headless setup a lot easier.
  2. Lastly, you'll need to go back to the developer applications website so you can create the bot invite link. I suggest using the permissions code 523328, but at this time it only needs permissions for viewing channels, sending messages, embedding links, attaching files, using external emojis, and mentioning @everyone/@here/all roles. You'll want to make sure to also have the scope set to bot.
  3. Then you can use the link, which should look something like https://discord.com/api/oauth2/authorize?client_id=[your-client-id]&permissions=523328&scope=bot, to add it to one server.

Node.js Libraries Used

Buy me a cup of coffee?

patreon ko-fi