Git Product home page Git Product logo

moodlebot's Introduction

MoodleBot V2

A typescript discord.js bot to connect to Moodle Mail then send it to Discord

How to use this?

  1. Clone this repository
  2. After done fill config.json with your preferred ids
  3. Add your bot token in .env file (if you haven't bot token go to the Discord Developer Portal then create a new application)
  4. Start command prompt in project folder
  5. Run npm install to install all project dependencies

If you want to send only mails from certain sender you can edit the property mails in the mailer instance in Client.ts L.53

Build project

Run command npm run build this will compile typescript in a dist folder in project folder.

Start in dev mode

Edit the APP_ENV property by dev in the .env file. Then run in command prompt npm run start:dev.
The bot will start and automatically restart if there is a change in your project folder.

Start in live mode

Set APP_ENV at live, don't forget to fill the config.json live section with your ids and other info. Then run npm run start:prod. This will start the bot after finish to compile it.

You can also start the bot without compile it by running npm run start.

Note for this command you can replace node by nodemon to automatically restart bot on dist folder change.

Hokanosekai#0001

Licence

MIT

moodlebot's People

Contributors

hokanosekai 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.