Skip to content

Commit 5681b6e

Browse files
committed
zulip_bots: Remove get_bot_doc_path and get_bot_logo_path.
These functions were rendered redundant by changes in our approach on how the main repo renders docs and logos contained in the zulip_bots package (see #6103). So, these should now be removed.
1 parent baa09bc commit 5681b6e

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

zulip_bots/zulip_bots/lib.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -22,30 +22,11 @@ def exit_gracefully(signum, frame):
2222
# type: (int, Optional[Any]) -> None
2323
sys.exit(0)
2424

25-
def get_bot_logo_path(name):
26-
# type: str -> Optional[str]
27-
current_dir = os.path.dirname(os.path.abspath(__file__))
28-
logo_path_png = os.path.join(
29-
current_dir, 'bots/{bot_name}/logo.png'.format(bot_name=name))
30-
logo_path_svg = os.path.join(
31-
current_dir, 'bots/{bot_name}/logo.svg'.format(bot_name=name))
32-
33-
if os.path.isfile(logo_path_png):
34-
return logo_path_png
35-
elif os.path.isfile(logo_path_svg):
36-
return logo_path_svg
37-
38-
return None
39-
4025
def get_bots_directory_path():
4126
# type: () -> str
4227
current_dir = os.path.dirname(os.path.abspath(__file__))
4328
return os.path.join(current_dir, 'bots')
4429

45-
def get_bot_doc_path(name):
46-
# type: (str) -> str
47-
return os.path.join(get_bots_directory_path(), '{}/doc.md'.format(name))
48-
4930
class RateLimit(object):
5031
def __init__(self, message_limit, interval_limit):
5132
# type: (int, int) -> None

0 commit comments

Comments
 (0)