Skip to content

Commit

Permalink
Merge pull request #78 from nclsbayona/v2
Browse files Browse the repository at this point in the history
V2
  • Loading branch information
nclsbayona authored Sep 15, 2023
2 parents d36fef2 + 496b931 commit 0b9a2a3
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 69 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ on:

workflow_dispatch:
schedule:
- cron: '15 3 * * 0'
- cron: '0 0 * * *'

jobs:
analyze:
Expand Down
106 changes: 43 additions & 63 deletions directory_file
Original file line number Diff line number Diff line change
Expand Up @@ -5,133 +5,113 @@
<h3 align="center">I'm really grateful that you came here 😎</h3>

<p align="center">
<img src="logo.png" alt="Logo">
<img src="logo.png" alt="Logo" width="480">
</p>

<h5 align="center">{{ text_affirmation }}</h5>
<strong align="center">{{ text_affirmation1 }}</strong>

<p align="center">
<img src="{{ affirmation_image }}" alt="Affirmation image">
<p>

<i>{{ text_affirmation2 }}</i>

</p>

----

<details>
<summary>Maybe a drink? 🍹</summary>




<br />
<h4 align="center">{{ drink_name }}</h4>
<p align="center">

<img src="{{ drink_image }}" alt="Drink image" />

</p>

#### Name: **{{ drink_name }}**

#### Alcoholic category: **{{ drink_alcoholic_category }}**

#### Category: **{{ drink_category }}**

<h5 align="center">{{ drink_alcoholic_category }} - {{ drink_category }}</h5>

<h5 align="center">Neccesary ingredients</h5>
<table align="center">
<tr>
<td>
{{{ table_drink }}}
</td>
</tr>
</table>


#### Preparation instructions: {{ drink_instructions }}

<p align="center">
{{ drink_instructions }}
</p>

----

</details>

<details>
<summary>Want to know more about my profile? 🪂</summary>

##### 👀 Visitor count


<p align="center">

<img src="https://profile-counter.glitch.me/nclsbayona/count.svg" />

</p>


##### Followers


<br />
<h5 align="center">👀 Visitor count</h5>
<p align="center">

<img src="https://img.shields.io/github/followers/nclsbayona?color=003153&logo=github&style=for-the-badge" />
<img src="https://profile-counter.glitch.me/nclsbayona/count.svg"/>

</p>


##### Last profile commit


<p align="center">

<img src="https://img.shields.io/github/followers/nclsbayona?color=003153&logo=github&style=for-the-badge"/>
<img src="https://img.shields.io/github/last-commit/nclsbayona/nclsbayona?color=003153&logo=github&style=for-the-badge&label=Latest%20Profile%20Commit">

</p>

##### Profile trophies 🏆

</p>
<p align="center">

<img src="https://github-profile-trophy.vercel.app/?username=nclsbayona&theme=dracula&no-frame=false&margin-w=5&margin-h=5&no-bg=true&column=4">

</p>


----

</details>
<details>
<summary>Want to check out my stats? 🐣</summary>


#### General GitHub Stats 🌀

##### 😃 General Overview
<br />
<h4 align="center">General GitHub Stats 🌀</h4>

<p align="center">

<img src="https://github-readme-stats.vercel.app/api?username=nclsbayona&show_icons=true&count_private=true&include_all_commits=true&locale=en&theme=tokyonight">

</p>

##### Life-Time Stats Overview 😃

<p align="center">
<!--h5>😃 General Overview</h5-->
<img src="https://github-readme-stats.vercel.app/api?username=nclsbayona&show_icons=true&count_private=true&include_all_commits=true&locale=en&theme=tokyonight" width="360">

<img src="https://github-readme-streak-stats.herokuapp.com/?user=nclsbayona&theme=algolia">
<!--h5>Life-Time Stats Overview 😃</h5-->
<img src="https://github-readme-streak-stats.herokuapp.com/?user=nclsbayona&theme=algolia" width="360">

</p>
<br />

#### 🤖 Programming Languages Stats
<br />

##### Most Used Languages Stats 💾
<h4 align="center">🤖 Programming Languages Stats</h4>

<p align="center">

<!--h5>Most Used Languages Stats 💾</h5-->
<img src="https://github-readme-stats.vercel.app/api/top-langs/?username=nclsbayona&show_icons=true&locale=en&langs_count=5&theme=tokyonight">

</p>

<br />

#### ⌚General Weekly-Stats

##### Overview ✨

<h4 align="center">⌚General Weekly-Stats</h4>
<table align="center">
<tr>
<td>
{{{ languages }}}

<br>

</td>
<td>
{{{ coded_on_os }}}
</td>
</tr>
</table>

----

Expand Down
15 changes: 10 additions & 5 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,10 @@ async def getAffirmation() -> Dict[str, str]:
"minion",
"sindarin",
"oldenglish",
"ferblatin",
"dothraki",
"valyrian",
"vulcan",
"klingon",
"pig-latin",
"yoda",
"sith",
"cheunh",
Expand Down Expand Up @@ -107,11 +105,14 @@ async def getAffirmation() -> Dict[str, str]:
f"https://api.funtranslations.com/translate/{translate_to}.json?text={affirmation}"
)
affirmation = (response.json()).get("contents").get("translated")
affirmation = f"The text '{text}' was translated to {translate_to} language, and the result is: '{affirmation}'"
affirmation = f'Someone once said: "{affirmation}"'
text = f'-- "{text}" in {translate_to} language --'

new_dictionary: Dict[str, str] = dict()
new_dictionary["text_affirmation"] = affirmation
new_dictionary["text_affirmation1"] = affirmation
new_dictionary["text_affirmation2"] = text

"""
if translate_to == "yoda":
new_dictionary[
"affirmation_image"
Expand Down Expand Up @@ -174,11 +175,15 @@ async def getAffirmation() -> Dict[str, str]:
new_dictionary[
"affirmation_image"
] = "https://static.memrise.com/img/400sqf/from/uploads/course_photos/6265139000150814054627.jpeg"
"""

return new_dictionary

except Exception or KeyboardInterrupt:
return {"text_affirmation": "An error ocurred please try again later"}
return {
"text_affirmation1": "An error ocurred",
"text_affirmation2": "Please try again later",
}


async def getWakaStats(waka_key: str = None, format: str = "string") -> Dict[str, str]:
Expand Down

0 comments on commit 0b9a2a3

Please sign in to comment.