Skip to content
/ Bot Public

Un bot pour afficher le planning d'une personne sur discord

Notifications You must be signed in to change notification settings

Corentin-k/Bot

Repository files navigation

DISCORD BOT


🇫🇷 Version Française

Inspired by the Crobotic Association's bot whith the assistance of @Serquand

  • Create a /planning command to retrieve schedule of somebody.
  • Create a command that provides informations about a book. This command uses the Google API.
  • Create a command that provides informations about a movie This command uses the OMBd API.
  • Created a command that retrieves data of the book/movie command and saves it in a database.
  • Adding librairies control system

1. Installation

Create a Git repository in a directory or download the zip file

    git init
    git clone https://github.com/Corentin-k/Bot.git

From a terminal (use the VS Code terminal):

    npm install
    npm install discord.js axios node-ical moment moment-timezone uuid
    npm i -D @types/uuid

Install node.js by follow the steps at https://nodejs.org/fr or with chocolatey using choco install nodejs

2. Create the .env file

Create .env file and follow information in the file ".env.example".

⚠️ NEVER share the token on the internet or push it to Github.

  • To get the ID of the discord server :

    Server Settings> widget>SERVER ID

  • To retrieves the ID of the discord channel :

    Right-click on the channel > Copy Channel ID

💡 An API key is required to access the /livre and /film commands.

3. To Start the Bot

Enter the following command:

npx nodemon

and wait to have this message : "Bot launched !"

Alt text

⚠️ If the bot doesn't work type the following command in the terminal: npm install -g npm.

Example Output