A health-check bot for the quality of services. This bot was written in about 4 days for an internship application assessment. There is no actual service or product so the reviews/issues are of course not related to any certain thing, they are just some sort of a proof of concept. Though the all responses are actually stored locally.
This was also a first for me with both Typescript and Docker, has been nice experimenting with new stuff though. So I've decided to skip Docker, don't have the energy to configure it.
The app requires a BOT_TOKEN
to be provided in .env
. The token can be taken from @BotFather on Telegram.
npm install
npm run dev
npm run build
npm run start
I've hosted the bot on heroku and tried to solve as many issues as i can, currently using the command /issues
would probably break it, and it might not get up again automatically. So, if the bot is not working, It probably requires me to restart it.
Well I've found the issue, the images directory was not added to Github so Heroku could not find it, crashing the app. Now, the bot is hosted and should be working fine. Try it out! Quality Bot
The sessions are stored as a local JSON file using Lowdb, just to make things simple and not over complicate the assessment. the sessions file will be auto generated when the bot first starts, living at the root directory. Images also live in /images at the root directory.
Here is the list of available commands:
- start: لتشغيل البوت
- cancel: لإلغاء العملية الحالية
- change: لتغيير اللغة
- reports: لرؤية جمييع تقييماتك
- issues: لرؤية جميع مشاكلك
- location: لرؤية موقعك المحفوظ