Use bot directly from telegram. To set new alert use 'Set Manual Alert' button and provide time and message in said format
🤖 AlerterAI also has an AI assistant, to use it start your chat message with 'AI'. Example: 'AI hello!'
🤖 AlerterAI has an API integration that allows developers to make:
GET request to get all info about their alert and POST request to add alert to alert list or immediate alert
Api endpoint: http://95.183.12.77/alertbot/api/alertList?uniqueUserId=youruserid
To get your uniqueUserId contact bot on telegram and use 'Api Integration' button
🛠️🛠️🛠️
For POST add new alert: include 'timestamp: (timeinmillis), message: (text) in request body'
For POST immediate message include only 'message: (text)' in request body
✨ AlerterAI comes along with source code for people to selfhost or contribute.
To selfhost AlerterAI you need to prepare a set of things:
- Mysql 5.7 Database(You can try version 8)
- HTTPS Proxy Server(To use with AI Api)
- Telegram Bot Key from Botfather
- Groq API key
Then use your Mysql Database and input following SQL query into the console:
CREATE TABLE usersAlert (userId INT(11) NOT NULL PRIMARY KEY AUTO_INCREMENT, userTelegramId BIGINT(20) NOT NULL, userName TEXT NOT NULL, uniqueUserId VARCHAR(36) NOT NULL, alertList JSON NOT NULL)
This query will create a usersAlert table which will be used by bot to store new users and keep the alert info alongside with users.json file
- Rename hidden.env into .env and input all environmental variables inside the fields
npm run build
to build dependencies
npm run start
to start
You will get an initialization error if something goes wrong
💻 If you need and API change the endpoint at LINE 217 to your desired protocol and address/URL to get users to use it and check if the port of 80 is open and free to use