From a6e3343b4ca1b2d7833953228c52b9a4bba73867 Mon Sep 17 00:00:00 2001 From: Vivaan Parashar Date: Tue, 13 Apr 2021 18:11:42 +0530 Subject: use emojis and limit tags to 3 --- bot/constants.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bot/constants.py') diff --git a/bot/constants.py b/bot/constants.py index bb538487..6c114180 100644 --- a/bot/constants.py +++ b/bot/constants.py @@ -201,6 +201,11 @@ class Emojis: status_dnd = "<:status_dnd:470326272082313216>" status_offline = "<:status_offline:470326266537705472>" + stackoverflow_upvote = environ.get('stack_upvote', "<:stack_upvote:831468823320330270>") + stackoverflow_tag = environ.get('stack_tag', "<:stack_tag:831468691647889419> ") + stackoverflow_views = environ.get('stack_views', "<:stack_eye:831455489040318464>") + stackoverflow_ans = environ.get('stack_ans', "<:stack_ans:831455489195638784>") + class Icons: questionmark = "https://cdn.discordapp.com/emojis/512367613339369475.png" -- cgit v1.2.3 From 7a22098801065d8ffcc5ea38d854ebaff0965b52 Mon Sep 17 00:00:00 2001 From: Vivaan Parashar Date: Tue, 13 Apr 2021 18:28:20 +0530 Subject: Update emojis --- bot/constants.py | 8 ++++---- bot/exts/evergreen/stackoverflow.py | 4 +--- 2 files changed, 5 insertions(+), 7 deletions(-) (limited to 'bot/constants.py') diff --git a/bot/constants.py b/bot/constants.py index 6c114180..05eea474 100644 --- a/bot/constants.py +++ b/bot/constants.py @@ -201,10 +201,10 @@ class Emojis: status_dnd = "<:status_dnd:470326272082313216>" status_offline = "<:status_offline:470326266537705472>" - stackoverflow_upvote = environ.get('stack_upvote', "<:stack_upvote:831468823320330270>") - stackoverflow_tag = environ.get('stack_tag', "<:stack_tag:831468691647889419> ") - stackoverflow_views = environ.get('stack_views', "<:stack_eye:831455489040318464>") - stackoverflow_ans = environ.get('stack_ans', "<:stack_ans:831455489195638784>") + 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', "<:stack_ans:*>") class Icons: diff --git a/bot/exts/evergreen/stackoverflow.py b/bot/exts/evergreen/stackoverflow.py index 316c1ad7..04126d9c 100644 --- a/bot/exts/evergreen/stackoverflow.py +++ b/bot/exts/evergreen/stackoverflow.py @@ -82,7 +82,5 @@ def setup(bot: commands.Bot) -> None: """Loads Stackoverflow Cog.""" bot.add_cog(Stackoverflow(bot)) -# View icon made by Gregor Cresnar (https://www.flaticon.com/authors/gregor-cresnar) from www.flaticon.com, and edited -# by me -# Answer icon made by Prosymbols (https://www.flaticon.com/authors/prosymbols) from www.flaticon.com, and edited by me +# Upvote and Comment icon taken from Reddit bot # Tag icon made by Freepik (https://www.flaticon.com/authors/freepik) from www.flaticon.com, and edited by me -- cgit v1.2.3 From 9e89102f7061e0645563de7333fd162e431e53ef Mon Sep 17 00:00:00 2001 From: Vivaan Parashar Date: Mon, 7 Jun 2021 20:52:23 +0530 Subject: Use reddit emojis for upvote and answers --- bot/constants.py | 4 ++-- bot/exts/evergreen/stackoverflow.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'bot/constants.py') 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']})" ), -- cgit v1.2.3 From 4374931d78dc1e3c8a6a361c6f78da4a9237a20d Mon Sep 17 00:00:00 2001 From: Vivaan Parashar Date: Wed, 9 Jun 2021 22:16:12 +0530 Subject: Remove commented emojis --- bot/constants.py | 2 -- 1 file changed, 2 deletions(-) (limited to 'bot/constants.py') diff --git a/bot/constants.py b/bot/constants.py index fa5dc2bc..25545c04 100644 --- a/bot/constants.py +++ b/bot/constants.py @@ -225,10 +225,8 @@ class Emojis: status_offline = "<:status_offline:470326266537705472>" - # 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") # Reddit emojis reddit = "<:reddit:676030265734332427>" -- cgit v1.2.3