Compare commits

..

7 Commits

Author SHA1 Message Date
f020df5709 upversion 2025-07-30 11:02:32 +01:00
5acefe8346 fix warnings on start 2025-07-30 11:02:22 +01:00
5b7d39945e last upversion
All checks were successful
Build and Publish Docker Image / build-and-push (push) Successful in 20s
2025-07-30 10:34:48 +01:00
a78eae61c0 upversion
All checks were successful
Build and Publish Docker Image / build-and-push (push) Successful in 20s
2025-07-30 10:31:25 +01:00
e506f6fcf3 upversion
All checks were successful
Build and Publish Docker Image / build-and-push (push) Successful in 21s
2025-07-30 10:26:31 +01:00
2d67ec7ec7 fix joke logic 2025-07-30 10:25:39 +01:00
f69a27b922 fix import?
All checks were successful
Build and Publish Docker Image / build-and-push (push) Successful in 20s
2025-07-30 10:01:50 +01:00
3 changed files with 9 additions and 5 deletions

10
app.js
View File

@ -22,8 +22,9 @@ app.get('/', basicAuth(users), (req, res) => {
return res.send('Received a GET HTTP method');
});
app.listen(process.env.PORT, () =>
console.log(`Example app listening on port ${process.env.PORT}!`),
const port = process.env.PORT || 3000;
app.listen(port, () =>
console.log(`Example app listening on port ${port}!`),
);
const token = process.env.BOT_TOKEN;
@ -53,6 +54,7 @@ const bot_faq_whatAppToUse = require('./data/bot/functions/faq/whatAppToUse')
const bot_faq_subscription = require('./data/bot/functions/faq/subscriptions')
const bot_subStatus = require('./data/bot/functions/requests/updateSubStatus')
const shortcuts = require('./data/bot/lib/shorcuts')
const bot_joke = require('./data/bot/functions/requests/joke')
// Load group data using utils
@ -63,7 +65,7 @@ let chat = utils.loadChat();
let jointArray = navigation.concat(chat);
const bot = new TelegramBot(token, { polling: true });
const bot = new TelegramBot(token, { polling: true, cancelThrottledRequest: true });
bot.on('new_chat_members', (msg) => {
bot_welcome.welcomeMessage(bot, msg, logger)
@ -79,7 +81,7 @@ bot.on('message', (msg) => {
}
if (msg.text && msg.text.toString().includes("/joke")) {
requests.joke(bot, msg, logger)
bot_joke.tellMe(bot, msg, logger, name)
}
if (msg.text && msg.text.toString().includes("/updates_page")) {

View File

@ -1,3 +1,5 @@
var emoji = require('node-emoji');
module.exports = {
sendShortcutMessage: async (bot, msg, logger, title, description, postNumber, link) => {
bot.sendMessage(msg.chat.id, `${title} ${description}\n\n ${emoji.get('arrow_right')}<a href='${link}'>PRESS HERE</a>${emoji.get('arrow_left')} ${postNumber}`, { parse_mode: 'HTML', disable_web_page_preview: true })

View File

@ -1,6 +1,6 @@
{
"name": "bblbtv_bot",
"version": "1.0.4",
"version": "1.0.9",
"description": "",
"main": "index.js",
"scripts": {