Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Triangle Logo, Closes Issue #2 #29

Merged
merged 5 commits into from
Oct 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/pasteme_cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import sys
import os
from typing import Optional, Sequence
from random import choice as random

from requests.exceptions import ConnectionError

Expand All @@ -34,6 +35,7 @@
THEMES_HINT,
)
from .sdk import PasteMe
from .shapes import CHARACTERS

parser = argparse.ArgumentParser(
description=f'A CLI pastebin tool interacting with PasteMe ({PASTEME_SERVICE_URL}) RESTful APIs.',
Expand Down Expand Up @@ -132,7 +134,7 @@ def main(args: Optional[Sequence[str]] = None) -> None:
theme=args.theme,
expires_in=expiry_days[args.expiry_time],
)
print(f'PASTE --> {resp.url}')
print(random(CHARACTERS).format(resp.url))
sys.exit()
except ConnectionError:
sys.exit(CONNECTION_ISSUE_HINT)
13 changes: 13 additions & 0 deletions src/pasteme_cli/shapes.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
from xml.dom.pulldom import CHARACTERS


CHARACTERS = [
'¯\_(ツ)_/¯ -> {0}',
'( ͡° ͜ʖ ͡°) -> {0}',
'ಠ_ಠ -> {0}',
'(ᵔᴥᵔ) -> {0}',
'ʕ •ᴥ•ʔ -> {0}',
'( ͡ᵔ ͜ʖ ͡ᵔ ) -> {0}',
'(。◕‿◕。) -> {0}',
'(¬_¬) -> {0}',
]