Giter Site home page Giter Site logo

ddc-discord-bot's Introduction

HEIG-VD - Délégué de classe Discord Bot

Docker

dacc4/heig-ddc-discord-bot on docker hub

Development

Prerequisites

  • Node 16 with npm (latest)
  • Redis sevrer
  • Firebase app

Preparation of the environment

Install the dependencies with npm:

npm install

Copy the file .env.example, and complete the properties with the corresponding tokens:

cp .env.example .env

Running the bot

npm run dev

This command compiles the bot sources, then starts the bot (through src/bot.ts). If NODE_ENV == development, the HMR module is enabled, and commands, tasks, listeners, etc. will be automatically reloaded on compile.

Lint

We use ESLint and Prettier, with the airbnb config adapted to check Typescript source code.

# Running ESLint
npm run lint

# Run ESLint with auto-correction
npm run lint:fix

TypeScript type checking

npm run tsc:check

This command runs the TypeScript compiler with the --noEmit option. It validates types for the entire project.

Writing features

This bot uses the Sapphire Framework, features should follow the standard conventions from the framework.

ddc-discord-bot's People

Contributors

ajaquier avatar dacc4 avatar lazzzer avatar lothindir avatar lutonite avatar marinlestylo avatar vkaelin avatar

Stargazers

 avatar  avatar

Watchers

 avatar

ddc-discord-bot's Issues

create discord events for homeworks and tests

1 week before test
2 days before homework

In same listener: send message with event link in class channel
In another listener: send reminder on day before

To think about: add a custom role for event notifications?

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.