From 6edf271571f2bf123a4484a158f2365dd3bf3539 Mon Sep 17 00:00:00 2001 From: Jordan Doyle Date: Sun, 30 Jul 2017 09:09:13 +0100 Subject: [PATCH] Switch back to +/- instead of thumbs up/down emojis --- dave/modules/urbandictionary.py | 2 +- dave/modules/youtube.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dave/modules/urbandictionary.py b/dave/modules/urbandictionary.py index e1e71b5..b6f6ec7 100644 --- a/dave/modules/urbandictionary.py +++ a/dave/modules/urbandictionary.py @@ -43,7 +43,7 @@ if len(definition) > 200: definition = definition[:197] + "..." - definition = assembleFormattedText(A.normal[A.bold[str(res["word"])], ": {} [by {}, 👍 {} 👎 {}] [more at {}]".format( + definition = assembleFormattedText(A.normal[A.bold[str(res["word"])], ": {} [by {}, +{}/-{}] [more at {}]".format( definition, res["author"], res["thumbs_up"], diff --git a/dave/modules/youtube.py b/dave/modules/youtube.py index a438f69..073eb08 100644 --- a/dave/modules/youtube.py +++ a/dave/modules/youtube.py @@ -39,7 +39,7 @@ bot.msg(source, assembleFormattedText( A.normal[ A.bold[resp["snippet"]["title"]], - " ({}) by {} uploaded {}. {} views, 👍 {} 👎 {}.".format( + " ({}) by {} uploaded {}. {} views, +{}/-{}.".format( str(isodate.parse_duration(resp["contentDetails"]["duration"])), resp["snippet"]["channelTitle"], naturaltime( -- rgit 0.1.3