From d939f6942e101a24cf2bcf8325870200f75d31d0 Mon Sep 17 00:00:00 2001 From: baalajimaestro Date: Sun, 17 Apr 2022 19:43:21 +0530 Subject: [PATCH] Drop unused import Signed-off-by: baalajimaestro --- src/nim_censor_bot.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nim_censor_bot.nim b/src/nim_censor_bot.nim index b78ddde..b80e4a8 100644 --- a/src/nim_censor_bot.nim +++ b/src/nim_censor_bot.nim @@ -8,10 +8,9 @@ import telebot import std/[asyncdispatch, logging, options, strutils, random, with, os, tables, times, sequtils, json] import norm/[model, sqlite] -from cgi import encodeUrl # Logging Level -var L = newConsoleLogger(levelThreshold=lvlDebug, fmtStr="$levelname, [$time] ") +var L = newConsoleLogger(levelThreshold=lvlError, fmtStr="$levelname, [$time] ") addHandler(L) # Custom Types Defined to handle tables on norm @@ -147,6 +146,7 @@ proc banHandler(b: Telebot, c: Command): Future[bool] {.gcsafe, async.} = insert BannedUser discard await b.sendMessage(c.message.chat.id, "Banned!") +# Inline share handler proc inlineHandler(b: Telebot, u: InlineQuery): Future[bool]{.async.} = var TempData = @[NewCensoredData()] var ftype = ""