3 Commits

Author SHA1 Message Date
853c3c7cea dev (#19)
* Config file changes
* Commands `/remove`, `/import` and `/export`

Co-authored-by: profitroll <vozhd.kk@gmail.com>
Co-authored-by: Profitroll <47523801+profitrollgame@users.noreply.github.com>
Co-authored-by: Renovate <renovate@git.end-play.xyz>
Reviewed-on: #19
2023-04-24 13:48:22 +03:00
e5f80d9702 Updated Renovate config 2023-04-20 13:41:14 +02:00
6f03d5c18f Configure Renovate (#14)
Welcome to [Renovate](https://github.com/renovatebot/renovate)! This is an onboarding PR to help you understand and configure settings before regular Pull Requests begin.

🚦 To activate Renovate, merge this Pull Request. To disable Renovate, simply close this Pull Request unmerged.

---
### Detected Package Files

 * `requirements.txt` (pip_requirements)

### Configuration Summary

Based on the default config's presets, Renovate will:

  - Start dependency updates only once this onboarding PR is merged
  - Enable Renovate Dependency Dashboard creation.
  - Use semantic commit type `fix` for dependencies and `chore` for all others if semantic commits are in use.
  - Ignore `node_modules`, `bower_components`, `vendor` and various test/tests directories.
  - Group known monorepo packages together.
  - Use curated list of recommended non-monorepo package groupings.
  - Apply crowd-sourced package replacement rules.
  - Apply crowd-sourced workarounds for known problems with packages.

🔡 Would you like to change the way Renovate is upgrading your dependencies? Simply edit the `.renovaterc` in this branch with your custom config and the list of Pull Requests in the "What to Expect" section below will be updated the next time Renovate runs.

---

### What to Expect

It looks like your repository dependencies are already up-to-date and no Pull Requests will be necessary right away.

---

 Got questions? Check out Renovate's [Docs](https://docs.renovatebot.com/), particularly the Getting Started section.
If you need any further assistance then you can also [request help here](https://github.com/renovatebot/renovate/discussions).

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).

Reviewed-on: #14
Co-authored-by: Renovate <renovate@git.end-play.xyz>
Co-committed-by: Renovate <renovate@git.end-play.xyz>
2023-04-20 14:40:36 +03:00
4 changed files with 11 additions and 11 deletions

View File

@@ -82,12 +82,12 @@ async def random_pic(token: Union[str, None] = None) -> Tuple[str, str]:
f'{configGet("address", "posting", "api")}/albums/{configGet("album", "posting", "api")}/photos?q=&page_size={configGet("page_size", "posting")}&caption=queue', f'{configGet("address", "posting", "api")}/albums/{configGet("album", "posting", "api")}/photos?q=&page_size={configGet("page_size", "posting")}&caption=queue',
headers={"Authorization": f"Bearer {token}"}, headers={"Authorization": f"Bearer {token}"},
) )
# logWrite( logWrite(
# locale("random_pic_response", "console", locale=configGet("locale_log")).format( locale("random_pic_response", "console", locale=configGet("locale_log")).format(
# await resp.json() await resp.json()
# ), ),
# debug=True, debug=True,
# ) )
if resp.status != 200: if resp.status != 200:
logWrite( logWrite(
locale( locale(

View File

@@ -53,14 +53,14 @@ async def send_content(app: PosterClient) -> None:
logWrite( logWrite(
locale( locale(
"post_invalid_pic", "console", locale=configGet("locale") "post_invalid_pic", "console", locale=configGet("locale")
).format(response.status, str(await response.json())) ).format(response.status, str(response.json()))
) )
if configGet("error", "reports"): if configGet("error", "reports"):
await app.send_message( await app.send_message(
app.owner, app.owner,
locale( locale(
"post_invalid_pic", "message", locale=configGet("locale") "post_invalid_pic", "message", locale=configGet("locale")
).format(response.status, await response.json()), ).format(response.status, response.json()),
) )
tmp_dir = str(uuid4()) tmp_dir = str(uuid4())

View File

@@ -181,9 +181,9 @@ async def main():
response = await check_update.json() response = await check_update.json()
if len(response) == 0: if len(response) == 0:
raise ValueError("No bot releases on git found.") raise ValueError("No bot releases on git found.")
if float(response[0]["tag_name"].replace("v", "")) > version: if float(response[0]["tag_name"].replace("v.", "")) > version:
logWrite( logWrite(
f'New version {response[0]["tag_name"].replace("v", "")} found (current {version})' f'New version {response[0]["tag_name"].replace("v.", "")} found (current {version})'
) )
await app.send_message( await app.send_message(
configGet("owner"), configGet("owner"),

View File

@@ -2,7 +2,7 @@ python_dateutil==2.8.2
apscheduler==3.10.1 apscheduler==3.10.1
pytimeparse==1.1.8 pytimeparse==1.1.8
convopyro==0.5 convopyro==0.5
pyrogram==2.0.106 pyrogram==2.0.104
aiofiles~=23.1.0 aiofiles~=23.1.0
tgcrypto==1.2.5 tgcrypto==1.2.5
aiohttp~=3.8.4 aiohttp~=3.8.4