Update ns.py
This commit is contained in:
parent
1dbe6e55b3
commit
52f47f3784
1 changed files with 4 additions and 4 deletions
|
@ -1,9 +1,9 @@
|
||||||
from zzcore import StdAns
|
from zzcore import StdAns
|
||||||
import os
|
from subprocess import Popen
|
||||||
|
|
||||||
class Ans(StdAns):
|
class Ans(StdAns):
|
||||||
def GETMSG(self):
|
def GETMSG(self):
|
||||||
domain = 'www.qq.com'
|
domain = self.raw_msg['message'][4:]
|
||||||
p = os.popen("nslookup " + domain)
|
p = Popen(["nslookup ",domain])
|
||||||
msg = p.read()
|
msg = p.read()
|
||||||
return msg
|
return msg
|
Loading…
Reference in a new issue