ctucx.git: ctucxbot

[nimlang] A telegram bot

1 
2 
3 
4 
import asyncdispatch, telebot, strutils, times

proc unixtimeCommand* (bot: Telebot, command: Command): Future[bool] {.async.} =
  discard await bot.sendMessage(command.message.chat.id, "```" & $(toUnix(getTime())) & "```", replyToMessageId = command.message.messageId, parseMode = "markdown")