mirror of
https://github.com/Redume/Shirino.git
synced 2025-04-02 18:57:34 +03:00
Compare commits
4 commits
24507c2619
...
016e55732a
Author | SHA1 | Date | |
---|---|---|---|
016e55732a | |||
1ec6d5fb88 | |||
19a1d72cb9 | |||
b2751f10cc |
4 changed files with 4 additions and 25 deletions
|
@ -1,4 +1,4 @@
|
|||
FROM python:3.12
|
||||
FROM python:3.12-alpine
|
||||
|
||||
WORKDIR /shirino
|
||||
|
||||
|
|
2
LICENSE
2
LICENSE
|
@ -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
|
||||
|
|
23
README.md
23
README.md
|
@ -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>
|
|
@ -1,4 +1,4 @@
|
|||
aiohttp~=3.9.5
|
||||
requests~=2.32.3
|
||||
PyYAML~=6.0.1
|
||||
aiogram~=3.7.0
|
||||
aiogram~=3.15.0
|
Loading…
Add table
Add a link
Reference in a new issue