Andrew-J-Larson / galnet-news-discord-bot

Gets news posts from Galnet News, for Elite Dangerous centered discord servers.
GNU General Public License v3.0
1 stars 1 forks source link
bot bots discord discord-bot discord-js elite elite-dangerous elitedangerous galnet-api galnet-news javascript js node-js nodejs

Galnet News Discord Bot

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

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/galnet-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. ../galnet-news-discord-bot), and create a file named galnet-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]"
    }
  5. 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.
  6. 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.
  7. 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