fix: remove ping emoji when ping is not needed

pull/70/head
Rilliat 2025-01-17 22:17:10 +03:00
parent e083768a5f
commit 2de9c0fb22
1 changed files with 2 additions and 1 deletions

View File

@ -159,7 +159,8 @@ class HerokuInfoMod(loader.Module):
@loader.command() @loader.command()
async def infocmd(self, message: Message): async def infocmd(self, message: Message):
start = time.perf_counter_ns() start = time.perf_counter_ns()
message = await utils.answer(message, self.config["ping_emoji"]) if '{ping}' in self.config["custom_message"]:
message = await utils.answer(message, self.config["ping_emoji"])
await utils.answer_file( await utils.answer_file(
message, message,