From 9ae1c5b74cfb5564e28c569ecaec8b42edac89b1 Mon Sep 17 00:00:00 2001 From: ziro Date: Thu, 13 Jul 2023 16:23:19 +0700 Subject: [PATCH] chore: Migrate to Nexus --- .github/README.md | 2 +- src/zibot/exts/image/image.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/README.md b/.github/README.md index b4aaac91..d2d9b1f6 100644 --- a/.github/README.md +++ b/.github/README.md @@ -113,7 +113,7 @@ For information on how to use the bot, see https://zibot.aap.my.id/docs | ZIBOT\_AUTHOR | author | Change the bot's author name (and tag) shown in the info command | | **CURRENTLY NOT AVAILABLE** | links | Change the links shown in the info command | | **CURRENTLY NOT AVAILABLE** | TORTOISE\_ORM | Advanced TortoiseORM configuration, you shouldn't touch it if you're not familiar with TortoiseORM | -| ZIBOT\_INTERNAL\_API\_HOST | internalApiHost | The bot's [internal API](https://github.com/ZiRO-Bot/RandomAPI) | +| ZIBOT\_INTERNAL\_API\_HOST | internalApiHost | The bot's [internal API](https://github.com/ZiRO-Bot/nexus) | | ZIBOT\_ZMQ\_PUB | zmqPorts | Port for ZeroMQ's Publish | | ZIBOT\_ZMQ\_SUB | zmqPorts | Port for ZeroMQ's Subscribe | | ZIBOT\_ZMQ\_REP | zmqPorts | Port for ZeroMQ's Reply | diff --git a/src/zibot/exts/image/image.py b/src/zibot/exts/image/image.py index 374684c4..48113386 100644 --- a/src/zibot/exts/image/image.py +++ b/src/zibot/exts/image/image.py @@ -23,8 +23,8 @@ class Image(commands.Cog, CogMixin): def __init__(self, bot): super().__init__(bot) - # Source: https://github.com/ZiRO-Bot/RandomAPI - self.imageManipUrl = f"http://{self.bot.config.internalApiHost}/api/v1/image" + # Source: https://github.com/ZiRO-Bot/nexus/tree/2.0 + self.imageManipUrl = f"http://{self.bot.config.internalApiHost}/v1/image" # TODO: Slash async def doImageFilter(