fix: Clean up sed leftovers
git-svn-id: file:///srv/svn/repo/chen/trunk@19 32723744-9b23-0b4a-b1da-9b2e968f9461
This commit is contained in:
parent
0cb4fa3a01
commit
ecd4f21710
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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user