fix: Clean up sed leftovers
このコミットが含まれているのは:
コミット
239fbd8022
12
main.py
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()
|
||||
|
|
読み込み中…
新しいイシューから参照