It's a support bot to about ~2k Elite: Dangerous players on Discord communication software.
Linked to 3rd party APIs, eddb.io and edsm.net.
CW are initials to "Cobra Wing" our private group in the game Elite: Dangerous.
System that CW there's placed and your reputations; Chart by all systems and compare that CW there's placed and your reputations day by day; System minor groups to compare your influences; Help command to show available commands; Players statistics online and what's games who playing.
Admin manager custom commands to returns a specific and static message response; List all custom commands by group type.
Monitor and advertise newsletter by game developer site; Monitor and advertise game server status (online, offline); Extraction 3rd party sites infos to show chart statistics.
Made using Node.js with discord.js dependency to connect the Discord server; Many npm dependencies to read local files, request/response APIs, text format, data base access and others; Jobs execution using node.js; Plot.ly javascript API to generate charts; Mongo database to store informations; Heroku cloud application platform to run.
ENVIRONMENT => set to DEV on localhost BASE_URL => Site base URL (local http://localhost:5000 with default port) BOT_KEY => DiscordJs bot public key, see more in discordapp.com/developers MONGO_URL => mongodb://user:pass@host:port/dbaseName PLOTLY_USER => Plotly API user PLOTLY_PASS => Plotly API password NEWSLETTER_CHANNEL => Discord channel name to show newsletter notification SERVER_STATUS_CHANNEL => Discord channel name to show server status change notification CUSTOM_COMMANDS_CHANNEL => Discord channel name to execute custom commands (admin commands) BLOCK_BOT_DIRECT_MESSAGES => (true|false) to bot ignore direct messages.
npm install
npm start