Git Product home page Git Product logo

bot's Introduction

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

bot's People

Contributors

corentin-k avatar kevin-71 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.