From 56df25390c2b838083e31c395eea71d139060b8c Mon Sep 17 00:00:00 2001 From: Fabian Stamm Date: Sat, 26 Sep 2020 09:29:11 +0000 Subject: [PATCH] Adding chatid to Logging output --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 6bff531..56b9387 100644 --- a/src/index.ts +++ b/src/index.ts @@ -166,9 +166,9 @@ bot.command("list", async (ctx) => { bot.on("message", async ctx => { const chatid = ctx.chat.id; + Logging.debug("Message From:", chatid, ctx.message); const urls = ctx.message.entities.filter(e => e.type === "url").map(e => ctx.message.text.substr(e.offset, e.length)); - Logging.debug(ctx.message); await Promise.all(urls.map(async url => { Database.addSubscriber(url, chatid); await ctx.reply("Subscribed to: " + url);