diff --git a/src/nim_censor_bot.nim b/src/nim_censor_bot.nim index c7b73b9..063b7c8 100644 --- a/src/nim_censor_bot.nim +++ b/src/nim_censor_bot.nim @@ -10,7 +10,7 @@ import std/[asyncdispatch, logging, options, strutils, random, with, os, tables, import norm/[model, sqlite] # Logging Level -var L = newConsoleLogger(fmtStr="$levelname, [$time] ") +var L = newConsoleLogger(levelThreshold=lvlError, fmtStr="$levelname, [$time] ") addHandler(L) # Custom Types Defined to handle tables on norm @@ -190,5 +190,8 @@ proc updateHandler(b: Telebot, u: Update): Future[bool] {.async, gcsafe.} = # Start the bot let bot = newTeleBot(getEnv("TELEGRAM_TOKEN")) +echo "*********************" +echo "CensorBot is running!" +echo "*********************" bot.onUpdate(updateHandler) bot.poll(timeout=300)