<feed xmlns='http://www.w3.org/2005/Atom'>
<title>petthecord/src, branch master</title>
<subtitle>pet discord users
</subtitle>
<id>http://git.nakidai.ru/petthecord/atom?h=master</id>
<link rel='self' href='http://git.nakidai.ru/petthecord/atom?h=master'/>
<link rel='alternate' type='text/html' href='http://git.nakidai.ru/petthecord/'/>
<updated>2024-11-20T22:06:26+00:00</updated>
<entry>
<title>Make petter an optional in server.py</title>
<updated>2024-11-20T22:06:26+00:00</updated>
<author>
<name>Nakidai</name>
<email>nakidai@disroot.org</email>
</author>
<published>2024-11-20T22:06:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.nakidai.ru/petthecord/commit/?id=d7c2e5bcb79d65587b38642f4a99eeb4a7e9a9b2'/>
<id>urn:sha1:d7c2e5bcb79d65587b38642f4a99eeb4a7e9a9b2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Do some things with commands</title>
<updated>2024-11-20T22:05:16+00:00</updated>
<author>
<name>Nakidai</name>
<email>nakidai@disroot.org</email>
</author>
<published>2024-11-20T22:05:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.nakidai.ru/petthecord/commit/?id=56ca509f11c836328f524f03810b9be9cfbd9eec'/>
<id>urn:sha1:56ca509f11c836328f524f03810b9be9cfbd9eec</id>
<content type='text'>
Now previously known /petpet is moved to /petpetlink, and /petpet is a
new command that returns with gif rather than link.
</content>
</entry>
<entry>
<title>Edit origin argument's metavar</title>
<updated>2024-11-07T00:18:40+00:00</updated>
<author>
<name>Nakidai</name>
<email>nakidai@disroot.org</email>
</author>
<published>2024-11-07T00:18:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.nakidai.ru/petthecord/commit/?id=82b259ef6a8d0057d295d0298f49020c2eb90651'/>
<id>urn:sha1:82b259ef6a8d0057d295d0298f49020c2eb90651</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Move --no-cache argument</title>
<updated>2024-11-07T00:18:04+00:00</updated>
<author>
<name>Nakidai</name>
<email>nakidai@disroot.org</email>
</author>
<published>2024-11-07T00:18:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.nakidai.ru/petthecord/commit/?id=a2b6689d199b3e4336c10ed1cfee41f68e356603'/>
<id>urn:sha1:a2b6689d199b3e4336c10ed1cfee41f68e356603</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add defaults</title>
<updated>2024-11-07T00:17:17+00:00</updated>
<author>
<name>Nakidai</name>
<email>nakidai@disroot.org</email>
</author>
<published>2024-11-07T00:17:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.nakidai.ru/petthecord/commit/?id=0ee19656730699b0c3a743627b4703d0774d03ea'/>
<id>urn:sha1:0ee19656730699b0c3a743627b4703d0774d03ea</id>
<content type='text'>
Now default values are stored in one place :3
</content>
</entry>
<entry>
<title>Refactor cache</title>
<updated>2024-11-07T00:02:00+00:00</updated>
<author>
<name>Nakidai</name>
<email>nakidai@disroot.org</email>
</author>
<published>2024-11-07T00:02:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.nakidai.ru/petthecord/commit/?id=4f99e6ada3ddde9c8b1a79129db7653e5862c985'/>
<id>urn:sha1:4f99e6ada3ddde9c8b1a79129db7653e5862c985</id>
<content type='text'>
- Now runner only gets petter as the arguemnt, not petter's arguemnts
- Petters has its own directory
</content>
</entry>
<entry>
<title>Add shard support, fix #2</title>
<updated>2024-11-05T13:22:44+00:00</updated>
<author>
<name>Nakidai</name>
<email>nakidai@disroot.org</email>
</author>
<published>2024-11-05T13:22:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.nakidai.ru/petthecord/commit/?id=09fe2c1160cf87d31ebe381d1622d5889c8a333d'/>
<id>urn:sha1:09fe2c1160cf87d31ebe381d1622d5889c8a333d</id>
<content type='text'>
Shards are way to fix the problem with 429
</content>
</entry>
<entry>
<title>Edit code's interface</title>
<updated>2024-11-05T12:25:26+00:00</updated>
<author>
<name>Nakidai</name>
<email>nakidai@disroot.org</email>
</author>
<published>2024-11-05T12:25:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.nakidai.ru/petthecord/commit/?id=8311ace9df72d57ee6026de57b0063cf198d1ae5'/>
<id>urn:sha1:8311ace9df72d57ee6026de57b0063cf198d1ae5</id>
<content type='text'>
- Rename `Bot` from `petthecord.runner` to `PetTheCord`
- Add all classes to the __init__.py
</content>
</entry>
<entry>
<title>Suppress error on remove</title>
<updated>2024-10-31T23:47:03+00:00</updated>
<author>
<name>Nakidai</name>
<email>nakidai@disroot.org</email>
</author>
<published>2024-10-31T23:47:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.nakidai.ru/petthecord/commit/?id=5a0faa2bccf9cdec1bb57f0c11f632679538ebc3'/>
<id>urn:sha1:5a0faa2bccf9cdec1bb57f0c11f632679538ebc3</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>Add warning on except</title>
<updated>2024-10-31T20:54:35+00:00</updated>
<author>
<name>Nakidai</name>
<email>nakidai@disroot.org</email>
</author>
<published>2024-10-31T20:54:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.nakidai.ru/petthecord/commit/?id=815382fe0c48a2fc2af1c256b3e52a9f3433e20a'/>
<id>urn:sha1:815382fe0c48a2fc2af1c256b3e52a9f3433e20a</id>
<content type='text'>
</content>
</entry>
</feed>
