ctucx.git: ctucxbot

[nimlang] A telegram bot

commit 82dd7f5122a1674598c2bc534bb2a043fa60c6db
parent 2c36682884266bcc2514af87d21b89184b5accb8
Author: ctucx <c@ctu.cx>
Date: Wed, 15 Jan 2020 23:36:12 +0100

add some comments
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/foo b/foo
@@ -1 +0,0 @@
-lol-
\ No newline at end of file
diff --git a/src/ctucxbot.nim b/src/ctucxbot.nim
@@ -28,21 +28,25 @@ proc updateHandler(bot: Telebot, update: Update) {.async.} =
         response.replyToMessageId = message.messageId
         discard await bot.send(response)
 
+      # if much penis send a pic
       elif penisCount > 4:
         var response = newPhoto(message.chat.id, "file://" & getCurrentDir() & "/data/pics/penis.jpg")
         response.replyToMessageId = message.messageId
         discard await bot.send(response)
 
+      #if not so much penis send a random lewd message
       elif penisCount > 0:
         var response = newMessage(message.chat.id, sample(answers))
         response.replyToMessageId = message.messageId
         discard await bot.send(response)
 
+      #if sinep send a random dwel string
       elif text.normalize.contains("sinep"):
         var response = newMessage(message.chat.id, reversed(sample(answers)))
         response.replyToMessageId = message.messageId
         discard await bot.send(response)
 
+      #if text is "egg_irl" send a real egg!
       elif text == "egg_irl":
         var response = newPhoto(message.chat.id, "file://" & getCurrentDir() & "/data/pics/egg.jpg")
         response.replyToMessageId = message.messageId