fix: Clean up sed leftovers

このコミットが含まれているのは:
Aoi K 2023-02-23 19:32:08 -03:00
コミット 239fbd8022
1個のファイルの変更5行の追加7行の削除

12
main.py
ファイルの表示

@ -13,9 +13,6 @@ from urllib.parse import urlparse, parse_qs, urlunparse
from pantomime import normalize_mimetype
import cgi
sed_parse = re.compile("(?<!\\\\)[/#]")
sed_cmd = re.compile("^s[/#].*[/#].*[/#]")
parser = "html.parser"
user_agent = "Mozilla/5.0 (X11; Linux x86_64; rv:10.0)"
" Gecko/20100101 Firefox/10.0"
@ -178,6 +175,11 @@ class ChenBot(ClientXMPP):
async def update_info(self):
vcard = self.plugin["xep_0054"].make_vcard()
vcard["URL"] = "https://gt.kalli.st/novaburst/chen"
vcard[
"DESC"
] = "Chen is a self-proclaimed little sister of Angel. Her master is Ran Yakumo whose master is Yukari Yakumo"
vcard["NICKNAME"] = "Chen"
vcard["FN"] = "Chen"
asyncio.gather(self.plugin["xep_0054"].publish_vcard(vcard))
async def message(self, msg):
@ -196,8 +198,6 @@ class ChenBot(ClientXMPP):
except Exception:
...
self.sed_command(msg, sender, mtype)
async def muc_message(self, msg):
if msg["type"] in ("groupchat", "normal"):
mtype = "groupchat"
@ -216,8 +216,6 @@ class ChenBot(ClientXMPP):
except Exception:
pass
self.sed_command(msg, sender, mtype)
if __name__ == "__main__":
config = configparser.ConfigParser()