🏡 index : ~doyle/dave.git

author Jordan Doyle <jordan@doyle.wf> 2017-07-30 8:09:13.0 +00:00:00
committer Jordan Doyle <jordan@doyle.wf> 2017-07-30 8:09:13.0 +00:00:00
commit
6edf271571f2bf123a4484a158f2365dd3bf3539 [patch]
tree
07399097223f1f6d237e79d64ef0eeada97ebe34
parent
d17f6dee4130334d9c986fb87bc528eba09de1b9
download
6edf271571f2bf123a4484a158f2365dd3bf3539.tar.gz

Switch back to +/- instead of thumbs up/down emojis



Diff

 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
+++ b/dave/modules/urbandictionary.py
@@ -43,7 +43,7 @@ def urbandictionary(bot, args, sender, source):
        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
+++ b/dave/modules/youtube.py
@@ -39,7 +39,7 @@ def youtubevideo(bot, args, sender, source):
    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(