Skip to content

Commit

Permalink
Merge branch 'beta'
Browse files Browse the repository at this point in the history
  • Loading branch information
ptkdev committed Jan 26, 2023
2 parents a52afbd + fcac497 commit 834c19a
Show file tree
Hide file tree
Showing 8 changed files with 878 additions and 865 deletions.
8 changes: 6 additions & 2 deletions CHANGELOG.md
@@ -1,13 +1,17 @@
# v0.6.7 (November 18, 2022)
# v0.6.8 (January 26, 2023)

- Fix: minor issues and misprint in translation files
- Fix: update the nickname if you change it on telegram

<!-- all-shields/sponsors-badges:START -->

[![Donate Paypal](https://img.shields.io/badge/donate-paypal-005EA6.svg?style=for-the-badge&logo=paypal)](https://www.paypal.me/ptkdev) [![Donate Ko-Fi](https://img.shields.io/badge/donate-ko--fi-29abe0.svg?style=for-the-badge&logo=ko-fi)](https://ko-fi.com/ptkdev) [![Donate GitHub Sponsors](https://img.shields.io/badge/donate-sponsors-ea4aaa.svg?style=for-the-badge&logo=github)](https://github.com/sponsors/ptkdev) [![Donate Patreon](https://img.shields.io/badge/donate-patreon-F87668.svg?style=for-the-badge&logo=patreon)](https://www.patreon.com/join/ptkdev) [![Donate Bitcoin](https://img.shields.io/badge/BTC-35jQmZCy4nsxoMM3QPFrnZePDVhdKaHMRH-E38B29.svg?style=flat-square&logo=bitcoin)](https://ptk.dev/img/icons/menu/bitcoin_wallet.png) [![Donate Ethereum](https://img.shields.io/badge/ETH-0x8b8171661bEb032828e82baBb0B5B98Ba8fBEBFc-4E8EE9.svg?style=flat-square&logo=ethereum)](https://ptk.dev/img/icons/menu/ethereum_wallet.png)

<!-- all-shields/sponsors-badges:END -->

# v0.6.7 (November 18, 2022)

- Fix: minor issues and misprint in translation files

# v0.6.6 (November 13, 2022)

- Fix: spotify button
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -4,7 +4,7 @@

<!-- all-shields/header-badges:START -->

[![v0.6.7](https://img.shields.io/badge/version-v0.6.7-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/aboutmeinfo-telegram-bot/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/aboutmeinfo-telegram-bot?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/aboutmeinfo-telegram-bot) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/aboutmeinfo-telegram-bot/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: Grammy](https://img.shields.io/badge/powered%20by-grammy-009dca.svg?style=flat&logo=telegram)](https://grammy.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)
[![v0.6.8-beta.1](https://img.shields.io/badge/version-v0.6.8--beta.1-lightgray.svg?style=flat&logo=)](https://github.com/ptkdev/aboutmeinfo-telegram-bot/blob/main/CHANGELOG.md) [![](https://img.shields.io/npm/v/@ptkdev/aboutmeinfo-telegram-bot?color=CC3534&logo=npm)](https://www.npmjs.com/package/@ptkdev/aboutmeinfo-telegram-bot) [![License: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat&logo=license)](https://github.com/ptkdev/aboutmeinfo-telegram-bot/blob/main/LICENSE.md) [![Language: TypeScript](https://img.shields.io/badge/language-typescript-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) [![Framework: Grammy](https://img.shields.io/badge/powered%20by-grammy-009dca.svg?style=flat&logo=telegram)](https://grammy.dev/) [![ECMAScript: 2019](https://img.shields.io/badge/ES-9-F7DF1E.svg?style=flat&logo=javascript)](https://github.com/tc39/ecma262) [![Discord Server](https://discordapp.com/api/guilds/383373985666301975/embed.png)](https://discord.ptkdev.io)

<!-- all-shields/header-badges:END -->

Expand Down
6 changes: 6 additions & 0 deletions app/functions/commands/set.ts
Expand Up @@ -37,6 +37,12 @@ const set = async (): Promise<void> => {
}),
);
} else {
const about = await db.about.get({
id: telegram.api.message.getUserID(ctx),
});
about.username = telegram.api.message.getUsername(ctx);
await db.about.update({ id: about.id }, about);

const buttons = new InlineKeyboard();

buttons.text(translate(lang.language, "about_command_button_facebook"), "set_facebook");
Expand Down
1 change: 1 addition & 0 deletions app/functions/commands/start.ts
Expand Up @@ -54,6 +54,7 @@ const start = async (): Promise<void> => {
});

if (about.id.toString() !== "0") {
about.username = telegram.api.message.getUsername(ctx);
about.step = "facebook";
await db.about.update({ id: about.id }, about);
} else {
Expand Down
2 changes: 1 addition & 1 deletion app/translations/en.json
Expand Up @@ -58,5 +58,5 @@
"start_command_nickname_empty": "🚷 You have not set a nickname in your telegram account: enter the settings of the app and insert one, then you do again /start",
"start_command_intro_group": "This bot allows you to share your social profiles and links with Telegram users.\n\nUse the command <code>/about @nickname</code> to see a user's profiles and links, for example:\n\n<code>/about @ptkdev</code>\n\nType in private to @{{bot_nickname}} to set your links and social media.",
"ral_command": "||The RAL of {{username}}, {{ral}}k\\!||",
"ral_command_error": "The correct format is:\n\n<code>/ral @nickname</code>\n\n<code>example: /ral @ptkdev</code>. Try again!"
"ral_command_error": "The correct format is:\n\n<code>/ral @nickname</code>\n\nexample: <code>/ral @ptkdev</code>. Try again!"
}
2 changes: 1 addition & 1 deletion app/translations/it.json
Expand Up @@ -58,5 +58,5 @@
"start_command_nickname_empty": "🚷 Non hai impostato un nickname nel tuo account di Telegram, entra nelle impostazioni dell'app e inseriscine uno. Poi fai nuovamente /start",
"start_command_intro_group": "Questo bot permette di condividere i tuoi profili social e link con gli utenti di telegram.\n\nUsa il comando <code>/about @nickname</code> per vedere i profili e link di un utente, ad esempio:\n\n<code>/about @ptkdev</code>\n\nScrivi in privato a @{{bot_nickname}} per impostare i tuoi profili.",
"ral_command": "||La RAL di {{username}}, {{ral}}k\\!||",
"ral_command_error": "Il formato corretto è:\n\n<code>/ral @nickname</code>\n\n<code>esempio: /ral @ptkdev</code>. Riprova!"
"ral_command_error": "Il formato corretto è:\n\n<code>/ral @nickname</code>\n\nesempio: <code>/ral @ptkdev</code>. Riprova!"
}

0 comments on commit 834c19a

Please sign in to comment.