Skip to content

TimoMet/IEM-Discord-bot

 
 

Repository files navigation

IEM Discord bot

A nice and polite bot made for the Discord's server of the IEM P8 reworked by goat among the IEM P9.

How to setup

This bot is built on top of Discord.js library for Node.js. See this page to know how to register it on your Discord's server.

Then you'll need to tweak some files a little bit, because some of the variables are not stored in this repo for security reasons. To deploy the bot you'll need to configure them in 2 separate files :

/src/config.json file

Rename the file config.example.json to config.json and update the variables inside. To find them, see this page for the token and this page for the IDs.

.env file (environment variables)

Rename the file example.env to .env and update the URL the bot will visit to grab the planning. It's the page displaying only one week of the planning, given by the QR code available in the regular planning page. The page looks like this :
Web page to scrap

Deployment with Docker

  • Clone the repo on your server and cd into it
  • Add the .env and the config.json files
  • Build the image : docker build . -t iem-discord-bot:latest
  • Run the image : docker run -d --name iem-discord-bot iem-discord-bot:latest

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 95.3%
  • Dockerfile 3.1%
  • Shell 1.6%