GithubHelp home page GithubHelp logo

enzomtpyt / pronote_bot-nodejs Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 7.48 MB

A discord bot that send you your homeworks/timetables automatically !

JavaScript 99.93% Batchfile 0.07%
bot discord discord-bot discord-js discordjs discordjs-bot node nodejs pronote pronote-api

pronote_bot-nodejs's Introduction

Pronote_Bot-NodeJS

Pronote_Bot-NodeJS is a discord bot that fetch Pronote infos (like homeworks and timetables)

Installation

Using git :

git clone https://github.com/enzomtpYT/Pronote_Bot-NodeJS.git

Usage

Configure the bot

In config.json

{
    "pronoteurl": "YOUR_PRONOTE_URL",
    "discord": {
        "discordtoken": "YOUR_DISCORD_TOKEN",
        "appID": "YOUR_DISCORD_APP_ID",
        "sendmenu": true,
        "menuchannel": "CHANNEL_TO_SEND_MENU"
    },
    "group": {
        "1": {
            "username": "USERNAME_FOR_GROUP1",
            "password": "PASSWORD_FOR_GROUP1",
            "homeworks": "CHANNEL_TO_SEND_HOMEWORKS_FOR_GROUP1",
            "timetables": "CHANNEL_TO_SEND_TIMETABLES_FOR_GROUP1"
        },
        "2": {
            "username": "USERNAME_FOR_GROUP2",
            "password": "PASSWORD_FOR_GROUP2",
            "homeworks": "CHANNEL_TO_SEND_HOMEWORKS_FOR_GROUP2",
            "timetables": "CHANNEL_TO_SEND_TIMETABLES_FOR_GROUP2"
        }
    }
}

Start the bot

In the bot folder open a terminal and do :

node index.js

Use the bot

Commands :

  • Timetables ( With cancelled classes )
  • Homeworks

Auto messages (DM or Channel) :

  • Timetables ( With cancelled classes ) every morning
  • Homeworks every afternoon

License

MIT

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.