From 4bc4faa8d5c9e1dd6af3dd71fe8744b3e234c1fb Mon Sep 17 00:00:00 2001 From: "Mr.Miss" Date: Sun, 6 Jun 2021 18:43:29 +0700 Subject: [PATCH] federation: fix delfed string --- anjani_bot/plugins/federation.py | 4 ++-- language/en.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/anjani_bot/plugins/federation.py b/anjani_bot/plugins/federation.py index 7ed0b6e33..06a078fed 100644 --- a/anjani_bot/plugins/federation.py +++ b/anjani_bot/plugins/federation.py @@ -140,7 +140,7 @@ async def del_fed(self, message): return await message.reply_text(await self.bot.text(chat_id, "user-no-feds")) await message.reply_text( - await self.bot.text(chat_id, "del-fed-confirm", name=feds["name"]), + await self.bot.text(chat_id, "del-fed-confirm", feds["name"]), reply_markup=InlineKeyboardMarkup( [ [ @@ -171,7 +171,7 @@ async def del_fed_query(self, query): LOGGER.debug(f"Deleting federation {fed_id}") async with self.lock: data = await self.feds_db.find_one_and_delete({"_id": fed_id}) - await query.message.edit_text(await self.bot.text(chat_id, "fed-delete-one", data["name"])) + await query.message.edit_text(await self.bot.text(chat_id, "fed-delete-done", data["name"])) @listener.on("joinfed", admin_only=True) async def join_fed(self, message): diff --git a/language/en.yml b/language/en.yml index 9567481bc..168d0dd42 100644 --- a/language/en.yml +++ b/language/en.yml @@ -130,11 +130,11 @@ del-fed-confirm: | Are you sure you want to delete this federation? This action cannot be undone! You will loose your entire ban list and your federation will be permanently lost! - \nConfirm deletion of **{name}** + \nConfirm deletion of **{}** fed-confirm-text: "⚠️ Confirm Deletion ⚠️" fed-abort-text: Abort fed-delete-canceled: Federation deletion canceled -fed-delete-done: I have deleted your Federation!\nAll groups data that connect to **{}** are now removed. +fed-delete-done: I have deleted your Federation!\nAll groups that connect to **{}** are now federation-less. fed-cant-two-feds: You cannot join two federations in one chat! fed-invalid-id: Please enter a valid federation ID fed-already-connected: This group is already connected to that federation!