Status
About | Features | Technologies | Requirements | Starting | Contributors
This is a WhatsApp bot that helps you to get the latest updates from your course reps. It is intended to assist the course reps in their duties and to help students get the latest updates from their Lecturers.
It is built using TypeScript, Node.js, Express, MongoDB and Wweb.js.
- Send reminders on lectures and tutorials
- Send reminders on assignments, tests and quizzes
- Send daily weather reports
- GPA calculator
- Used as dictionary
- Random jokes and quotes to make chat more lively
- ...............
The following tools were used in this project:
Before starting 🏁, you need to have Git and Node installed.
- Clone the repo
git clone https://github.com/learners-pal/courserep.git- Install NPM packages
npm install- Create a
.envfile in the root directory and add the following
MONGO_URI=<your_mongo_uri>- Run the app
npm run botOn start up, you are likely to get an error like this:
Error: TypeError: Cannot read property 'collection' of undefined in MongoStore ........This is because the MongoStore is not yet connected to the database. To fix this,
- Open the
node_modules/wwebjs-mongo/src/MongoStore.jsfile and make the following changes on line 10 and 11
# Before
let multiDeviceCollection = this.mongoose.connection.db.collection(`whatsapp-${options.session}.files`);
let hasExistingSession = await multiDeviceCollection.countDocuments();
# After
let multiDeviceCollection = this.mongoose.connection.db?.collection(`whatsapp-${options.session}.files`);
let hasExistingSession = await multiDeviceCollection?.countDocuments();
- Open the
node_modules/whatsapp-web.js/src/util/Injected.jsfile and make the following changes on line 28
# Before
window.Store.QueryExist = window.mR.findModule('queryExists')[0].queryExists;
# After
window.Store.QueryExist = window.mR.findModule('queryExists')[0] ? window.mR.findModule('queryExists')[0].queryExists : window.mR.findModule('queryExist')[0].queryWidExists;Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature)
These are the great people who contributed to this project.
