Discord bot to post Galnet News from Elite: Dangerous. This bot will check Galnet four times an hour for a new article and post to any subscribed Discord servers.
- Invite the Bot to your Server
- Give the bot the necessary permissions to post
- Edit the channel you want the bot to sync to
- Add
galnet-news on
to the channel's topic
- Include the language code to sync with a different language. Example:
galnet-news on fr-FR
- Save the change
- You should see a notification from the bot letting you know that it is synced to the channel. If you don't see this message, it likely can't post to your channel, please check your permissions again. You can remove the command from the channel's topic and delete the message from the bot now.
Done!
Language preference is here. The Galnet News API doesn't support a lot of languages, but this should cover some popular languages.
Add the language code to the channel's topic like: galnet-news on de-DE
Available language codes:
- English (Default):
en-GB
- German:
de-DE
- French:
fr-FR
- Spanish:
es-ES
- Portuguese:
pt-BR
- Italian:
it-IT
- Dutch:
nl-NL
- Russian:
ru-RU
I've noticed that some of these still show up as English, but that is how Frontier provides it.
- Post Latest Article Now: Add
galnet-news post-now
to your channel topic. This will post the current article now using the language configuration. This will continue to post if you update your channel, you will need to remove it if you don't want it to post more.
Since this bot has very limited interaction, it seemed like a waste to monitor all messages in the discord server. So instead, the bot will monitor updates to your channels.
- Edit the channel
- Add
galnet-news off
to the channel's topic, save the change - You can remove the command from the channel's topic now
The bot is running on nodejs and discordjs. You can host this on any computer and it's very lightweight.
- discord.js
- better-sqlite3
- cron
- https
- Pull the repo
git clone https://github.com/pluginpatch/galnet-discord-bot.git
- In the repo directory, run
npm update
- Get your discord bot token https://discordapp.com/developers/applications/
- Create a file called
token.json
with your token in the repo directory:
{
"token": "<Your Token>"
}
- In the repo directory, run
npm start