From 00d91c7d1593c8304727ae48b3376bb3b70ab15e Mon Sep 17 00:00:00 2001 From: blank X Date: Sun, 18 Oct 2020 17:07:12 +0700 Subject: [PATCH] Change Spam Protection .sp alias to .spb due to selfpurge conflict --- sukuinote/plugins/einfo.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sukuinote/plugins/einfo.py b/sukuinote/plugins/einfo.py index 93016e4..dfa478f 100644 --- a/sukuinote/plugins/einfo.py +++ b/sukuinote/plugins/einfo.py @@ -45,7 +45,7 @@ DEAI_MODULE_CODES = { "8": "Codename Gestapo" } -@Client.on_message(~filters.sticker & ~filters.via_bot & ~filters.edited & filters.me & filters.command(['einfo', 'externalinfo', 'sw', 'spamwatch', 'deai', 'sp', 'spamprotection', 'cas', 'combot', 'rose'], prefixes=config['config']['prefixes'])) +@Client.on_message(~filters.sticker & ~filters.via_bot & ~filters.edited & filters.me & filters.command(['einfo', 'externalinfo', 'sw', 'spamwatch', 'deai', 'spb', 'spamprotection', 'cas', 'combot', 'rose'], prefixes=config['config']['prefixes'])) @log_errors @public_log_errors async def fedstat(client, message): @@ -60,7 +60,7 @@ async def fedstat(client, message): entity, entity_client = await get_entity(client, entity) if not isinstance(entity, str): entity = str(entity.id) - if entity.startswith('TEL-') or int(entity) < 0 or command in ('sp', 'spamprotection'): + if entity.startswith('TEL-') or int(entity) < 0 or command in ('spb', 'spamprotection'): await message.reply_text(f'Spam Protection:\n{await get_spam_protection(entity)}') elif command in ('sw', 'spamwatch'): await message.reply_text(f'Spamwatch:\n{await get_spamwatch(entity)}') @@ -206,4 +206,4 @@ Aliases: {prefix}combot {prefix}spamprotection <user> - Get Spam Protection info of <user> {prefix}spamprotection (as reply to message) - Get Spam Protection info of replied user -Aliases: {prefix}sp''') +Aliases: {prefix}spb''')