Update command.py

This commit is contained in:
SuperSonic 2020-02-26 06:41:19 +08:00
parent 3b6f69b1bf
commit b4f8f47ebc

View file

@ -300,7 +300,7 @@ class Yuuki_Command:
ncMessage), self.Yuuki.get_text("Exit."))
self.Yuuki.exit()
def _Com(self, ncMessage):
def _SystemCall(self, ncMessage):
msgSep = ncMessage.message.text.split(" ")
if ncMessage.message.from_ in self.Yuuki.Admin:
# noinspection PyBroadException
@ -330,7 +330,7 @@ class Yuuki_Command:
'GroupBackup': self._GroupBackup,
'Quit': self._Quit,
'Exit': self._Exit,
'Com': self._Com,
'SystemCall': self._SystemCall,
}
if Yuuki_Name == msgSep[0] and msgSep[1] in actions:
actions[msgSep[1]](ncMessage)