From f137a327cee1d1d86f3ffe56fef0b6bbe684ac73 Mon Sep 17 00:00:00 2001 From: blank X Date: Sat, 6 Mar 2021 10:38:35 +0700 Subject: [PATCH] Add new DEAI ban code and remove item from conversation_hack --- sukuinote/plugins/einfo.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sukuinote/plugins/einfo.py b/sukuinote/plugins/einfo.py index 6afc378..d894533 100644 --- a/sukuinote/plugins/einfo.py +++ b/sukuinote/plugins/einfo.py @@ -35,7 +35,8 @@ DEAI_BAN_CODES = { "24": "RESERVED", "25": "RESERVED", "26": "Raid initiation", - "27": "Raid participation" + "27": "Raid participation", + "28": "Kriminalamt" } DEAI_MODULE_CODES = { "0": "Gban", @@ -108,7 +109,7 @@ async def get_rose(client, entity): conversation_hack[identifier] = None while not conversation_hack[identifier]: await asyncio.sleep(0.5) - ntext = conversation_hack[identifier].split('\n') + ntext = conversation_hack.pop(identifier).split('\n') ntext.pop(0) if ntext: date = '-'.join(ntext.pop().split(' ')[-1].split('/')[::-1]) @@ -125,7 +126,7 @@ async def get_deai(client, entity): conversation_hack[identifier] = None while not conversation_hack[identifier]: await asyncio.sleep(0.5) - ntext = conversation_hack[identifier].split('\n') + ntext = conversation_hack.pop(identifier).split('\n') ntext.pop(0) if ntext: ntext.pop(0)