Skip to content

Commit

Permalink
Fixed codestyle and added option to the README.
Browse files Browse the repository at this point in the history
  • Loading branch information
penyaskito committed Jun 19, 2021
1 parent efd2c09 commit 171bf4e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 16,13 @@ Transliterate your spanish to andaluh EPA using this telegram bot. This bot stor

First install dependencies

You need to setup 3 environment variables to integrate with Telegram:
You can setup 4 environment variables to integrate with Telegram. Only `TOKEN` is mandatory:

- `APIURL`: URl for your [andaluh-api](https://github.com/andalugeeks/andaluh-api) instance. You can use ours as well https://api.andaluh.es/epa
- `TOKEN`: Create your bot with [Telegram's BotFather](https://core.telegram.org/bots) to retrieve your TOKEN
- `USERPREF_PATH`: Where to store the user preferences persistence storage

You can use the `.env` file to store them secretely. Use the `.env.example` template:
- `IMG_BASEURL`: Base url of the option icons, by default uses those hosted at https://andaluh.es.
You can use the `.env` file to store them secretly. Use the `.env.example` template:

```
$ cp .env.example .env # and edit the file!
Expand All @@ -47,7 47,7 @@ $ docker-compose up --build -d

* Add `andaluh-py` as an option instead of API.
* Add a new command to set user preferences
* Add a new command to exaplain how a transliteration is done, rule by rule. For educationan purposes.
* Add a new command to explain how a transliteration is done, rule by rule. For educational purposes.
* Add a new command to retrieve andalugeeks memes. For fun!

## Support
Expand Down
14 changes: 7 additions & 7 deletions app/andaluhbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 88,7 @@ def inlinequery(update, context):
InlineQueryResultArticle(
id='default',
title="EPA (tus preferencias guardadas)",
thumb_url= IMG_BASEURL images['default'],
thumb_url=IMG_BASEURL images['default'],
thumb_width=450,
thumb_height=450,
description=transliterations['default'],
Expand All @@ -98,7 98,7 @@ def inlinequery(update, context):
InlineQueryResultArticle(
id='standard',
title="Ç: EPA (standard)",
thumb_url= IMG_BASEURL images['standard'],
thumb_url=IMG_BASEURL images['standard'],
thumb_width=450,
thumb_height=450,
description=transliterations['standard'],
Expand All @@ -108,7 108,7 @@ def inlinequery(update, context):
InlineQueryResultArticle(
id='vaf:s',
title="S: EPA seseante",
thumb_url= IMG_BASEURL images['vaf:s'],
thumb_url=IMG_BASEURL images['vaf:s'],
thumb_width=450,
thumb_height=450,
description=transliterations['vaf:s'],
Expand All @@ -118,7 118,7 @@ def inlinequery(update, context):
InlineQueryResultArticle(
id='vaf:z',
title="Z: EPA zezeante",
thumb_url= IMG_BASEURL images['vaf:z'],
thumb_url=IMG_BASEURL images['vaf:z'],
thumb_width=450,
thumb_height=450,
description=transliterations['vaf:z'],
Expand All @@ -128,7 128,7 @@ def inlinequery(update, context):
InlineQueryResultArticle(
id='vaf:h',
title="H: EPA heheante",
thumb_url= IMG_BASEURL images['vaf:h'],
thumb_url=IMG_BASEURL images['vaf:h'],
thumb_width=450,
thumb_height=450,
description=transliterations['vaf:h'],
Expand All @@ -138,7 138,7 @@ def inlinequery(update, context):
InlineQueryResultArticle(
id='vvf:h',
title="A: EPA usando Aspirada[ʰ]",
thumb_url= IMG_BASEURL images['vvf:h'],
thumb_url=IMG_BASEURL images['vvf:h'],
thumb_width=450,
thumb_height=450,
description=transliterations['vvf:h'],
Expand All @@ -148,7 148,7 @@ def inlinequery(update, context):
InlineQueryResultArticle(
id='vvf:j',
title="J: EPA usando Jota",
thumb_url= IMG_BASEURL images['vvf:j'],
thumb_url=IMG_BASEURL images['vvf:j'],
thumb_width=450,
thumb_height=450,
description=transliterations['vvf:j'],
Expand Down

0 comments on commit 171bf4e

Please sign in to comment.