about summary refs log tree commit diff
AgeCommit message (Collapse)Author
2025-07-15Bump aiohttp from 3.10.11 to 3.12.14 (#5) HEAD masterNakidai
[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=aiohttp&package-manager=pip&previous-version=3.10.11&new-version=3.12.14)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/nakidai/petthecord/network/alerts). </details>
2025-07-15Bump aiohttp from 3.10.11 to 3.12.14dependabot[bot]
--- updated-dependencies: - dependency-name: aiohttp dependency-version: 3.12.14 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
2024-11-21Bump to v1.5.0 v1.5.0Nakidai
2024-11-21Make petter an optional in server.pyNakidai
2024-11-21Do some things with commandsNakidai
Now previously known /petpet is moved to /petpetlink, and /petpet is a new command that returns with gif rather than link.
2024-11-18Bump aiohttp from 3.10.5 to 3.10.11 (#3)Nakidai
Fix https://github.com/nakidai/petthecord/security/dependabot/1
2024-11-18Bump aiohttp from 3.10.5 to 3.10.11dependabot[bot]
Bumps [aiohttp](https://github.com/aio-libs/aiohttp) from 3.10.5 to 3.10.11. - [Release notes](https://github.com/aio-libs/aiohttp/releases) - [Changelog](https://github.com/aio-libs/aiohttp/blob/master/CHANGES.rst) - [Commits](https://github.com/aio-libs/aiohttp/compare/v3.10.5...v3.10.11) --- updated-dependencies: - dependency-name: aiohttp dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
2024-11-07Bump to v1.4.5 v1.4.5Nakidai
2024-11-07Edit origin argument's metavarNakidai
2024-11-07Move --no-cache argumentNakidai
2024-11-07Add defaultsNakidai
Now default values are stored in one place :3
2024-11-07Refactor cacheNakidai
- Now runner only gets petter as the arguemnt, not petter's arguemnts - Petters has its own directory
2024-11-05Bump to v1.4.4 v1.4.4Nakidai
2024-11-05Add shard support, fix #2Nakidai
Shards are way to fix the problem with 429
2024-11-05Edit code's interfaceNakidai
- Rename `Bot` from `petthecord.runner` to `PetTheCord` - Add all classes to the __init__.py
2024-11-01Add mailbox to license fileNakidai
2024-11-01Bump to v1.4.3 v1.4.3Nakidai
2024-11-01Suppress error on removeNakidai
When I was checking logs I've found that when ptc tries to update cache because of new avatar the function raises an error about some non-existent file: Traceback (most recent call last): File "/var/lib/ptc/venv/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 462, in _handle_request resp = await request_handler(request) File "/var/lib/ptc/venv/lib/python3.10/site-packages/aiohttp/web_app.py", line 537, in _handle resp = await handler(request) File "/var/lib/ptc/venv/lib/python3.10/site-packages/petthecord/server.py", line 35, in petpet return Response(body=await self._petter.petpet(uid), content_type="image/gif") File "/var/lib/ptc/venv/lib/python3.10/site-packages/petthecord/cache.py", line 74, in petpet remove(path) FileNotFoundError: [Errno 2] No such file or directory: '/var/cache/petthecord/...gif' Well, I think that it's OK to just suppress the error because GC still will remove all unneeded files.
2024-10-31Add warning on exceptNakidai
2024-10-29Bump to v1.4.2 v1.4.2Nakidai
2024-10-29Possibly fix bug in GCNakidai
When I was checking log of this bot I've noticed that thing in gc loop Traceback (most recent call last): File "/var/lib/ptc/venv/lib/python3.10/site-packages/discord/client.py", line 449, in _run_event await coro(*args, **kwargs) File "/var/lib/ptc/venv/lib/python3.10/site-packages/petthecord/runner.py", line 57, in on_ready await petter.gc_loop() File "/var/lib/ptc/venv/lib/python3.10/site-packages/petthecord/cache.py", line 107, in gc_loop del self._cache[filename.split('_')[0]] KeyError: '...' I don't really want to know why this error has occured, but IMO it's something related to broken index.json. So to fix the bug I just wrapped deleting action to try-except block which will ignore the KeyError exception. TBH looks like a kludge, but as I said I don't want to get into it :>
2024-10-28Bump to v1.4.1 v1.4.1Nakidai
2024-10-28RefactorNakidai
- Move caching to another file - Rename some files - Make loggers look ok
2024-10-27Bump to v1.4.0 v1.4.0Nakidai
2024-10-27Do gc in a loopNakidai
2024-10-27Probably fix #1Nakidai
2024-10-27Add loggingNakidai
2024-10-27Add origin parameterNakidai
2024-10-27Remove cache folderNakidai
2024-10-27Remove debug printNakidai
2024-10-27Fix pyproject.tomlNakidai
2024-10-27Fix typo v1.3.0Nakidai
2024-10-27Add cachingNakidai
Implement idea from https://raw.githubusercontent.com/nakidai/cptc/d69da87a74ea1fc18b73ec7660dad7d590e28ddd/TODO
2024-10-05Fix READMENakidai
2024-10-05Add Other petpet APIs sectionNakidai
2024-09-18Move to another domainNakidai
2024-09-14Add discord command v1.2.0Nakidai
2024-09-08Bump version v1.1.0Nakidai
2024-09-08Add redirect on rootNakidai
2024-09-08Add information about the instance v1.0.0Nakidai
2024-09-04Fix runNakidai
2024-09-04Add Setup section to the README.mdNakidai
2024-09-04Initial commitNakidai