fix banner in ping

pull/70/head
Who? 2025-01-18 01:15:15 +10:00 committed by GitHub
parent c3b0000ccb
commit b0c7ba3978
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 3 deletions

View File

@ -94,7 +94,7 @@ class TestMod(loader.Module):
),
loader.ConfigValue(
"banner_url",
"heroku",
None,
lambda: self.strings["banner_url"],
validator=loader.validators.String(),
),
@ -367,9 +367,8 @@ class TestMod(loader.Module):
"""- Find out your userbot ping"""
start = time.perf_counter_ns()
message = await utils.answer(message, self.config["ping_emoji"])
banner = self.config["banner_url"]
if banner != "heroku":
if self.config["banner_url"]:
await message.delete()
await self.client.send_file(
message.peer_id,