From ed167eb37cf859df036908aab2b1e7b9005c82be Mon Sep 17 00:00:00 2001 From: aNNiMON Date: Thu, 15 Aug 2024 00:26:29 +0300 Subject: [PATCH] Add logging --- bot.own | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bot.own b/bot.own index b07770a..f3d539d 100644 --- a/bot.own +++ b/bot.own @@ -1,4 +1,4 @@ -use std, functional, types, regex +use std, functional, types, regex, date include "own-modules/telegram-bot/TelegramBot.own" include "config.own" @@ -44,7 +44,8 @@ def processUpdate(update) { def processPost(id, chatId, msgId) { post = api.getPost(id) - println "Got post: " + post + url = "https://danbooru.donmai.us/posts/" + id + println "%s: %s".sprintf(newDate(), url) if !post.isImage() return 0 blacklistTags = config.danbooru.blacklistTags if post.containsTags(blacklistTags) return 0