diff options
| author | 2021-06-07 20:52:23 +0530 | |
|---|---|---|
| committer | 2021-06-07 20:52:23 +0530 | |
| commit | 9e89102f7061e0645563de7333fd162e431e53ef (patch) | |
| tree | 885c32770ebbb6a08be3af14a767e54bf6469247 | |
| parent | Merge branch 'main' of https://github.com/python-discord/sir-lancebot into fe... (diff) | |
Use reddit emojis for upvote and answers
| -rw-r--r-- | bot/constants.py | 4 | ||||
| -rw-r--r-- | bot/exts/evergreen/stackoverflow.py | 4 | 
2 files changed, 4 insertions, 4 deletions
| diff --git a/bot/constants.py b/bot/constants.py index aa26be83..1c62e78b 100644 --- a/bot/constants.py +++ b/bot/constants.py @@ -222,10 +222,10 @@ class Emojis:      status_offline = "<:status_offline:470326266537705472>" -    stackoverflow_upvote = environ.get('stack_upvote', "<:stack_upvote:*>")  # TODO: Fill in numbers (ids) +    # stackoverflow_upvote = environ.get('stack_upvote', "<:stack_upvote:*>")  # TODO: Fill in numbers (ids)      stackoverflow_tag = environ.get('stack_tag', "<:stack_tag:*> ")      stackoverflow_views = environ.get('stack_views', "<:stack_eye:*>") -    stackoverflow_ans = environ.get('stack_ans', "<:sta +    # stackoverflow_ans = environ.get('stack_ans', "<:sta")      # Reddit emojis      reddit = "<:reddit:676030265734332427>" diff --git a/bot/exts/evergreen/stackoverflow.py b/bot/exts/evergreen/stackoverflow.py index e97e0318..45dcb62a 100644 --- a/bot/exts/evergreen/stackoverflow.py +++ b/bot/exts/evergreen/stackoverflow.py @@ -64,9 +64,9 @@ class Stackoverflow(commands.Cog):              embed.add_field(                  name=unescape(item['title']),                  value=( -                    f"[{Emojis.stackoverflow_upvote} {item['score']}    " +                    f"[{Emojis.reddit_upvote} {item['score']}    "                      f"{Emojis.stackoverflow_views} {item['view_count']}     " -                    f"{Emojis.stackoverflow_ans} {item['answer_count']}   " +                    f"{Emojis.reddit_comments} {item['answer_count']}   "                      f"{Emojis.stackoverflow_tag} {', '.join(item['tags'][:3])}]"                      f"({item['link']})"                  ), | 
