Compare commits

...

4 commits

4 changed files with 4 additions and 25 deletions

View file

@ -1,4 +1,4 @@
FROM python:3.12
FROM python:3.12-alpine
WORKDIR /shirino

View file

@ -1,4 +1,4 @@
Copyright (c) 2023-2024 Redume, DarkCat09 (Chechkenev Andrey)
Copyright (c) 2023-2025 Redume, DarkCat09 (Chechkenev Andrey)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

View file

@ -1,21 +1,16 @@
# Shirino
> [!NOTE]
> Telegram-бот который выводит курс валюты используя DuckDuckGO и [CoinAPI](https://www.coinapi.io/).
> Telegram-бот который выводит курс валюты используя DuckDuckGO и [Kekkai](https://github.com/Redume/Kekkai).
>
> https://t.me/shirino_bot
## Хочу запустить
<details>
Получите токен бота в телеграме и токен CoinAPI.
Вставьте в файл `config.yaml` в формате:
```yaml
coinapi_keys:
- key1
- key2
- etc.
telegram_token: Токен Telegram-бота
```
@ -33,19 +28,3 @@ timeout: 2 # таймаут для библиотеки requests, в секун
Конфиги уже есть в репозитории.
После проверок можете открывать PR.
</details>
## Почему конфиг для CoinAPI - список?
<details>
Можно получить несколько ключей на разные почтовые ящики
и все ключи вписать в список:
```yaml
coinapi_keys:
- key1
- key2
- etc.
```
Если вдруг один из них будет заблокирован по рейтлимиту,
бот автоматически переключится на следующий (token rotation).
</details>

View file

@ -1,4 +1,4 @@
aiohttp~=3.9.5
requests~=2.32.3
PyYAML~=6.0.1
aiogram~=3.7.0
aiogram~=3.15.0