mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
Added pid command.
This commit is contained in:
parent
105c371f6c
commit
390bd45fbd
@ -150,6 +150,13 @@ class Unix(callbacks.Privmsg):
|
|||||||
"""
|
"""
|
||||||
irc.reply(progstats())
|
irc.reply(progstats())
|
||||||
|
|
||||||
|
def pid(self, irc, msg, args):
|
||||||
|
"""takes no arguments
|
||||||
|
|
||||||
|
Returns the current pid of the process for this Supybot.
|
||||||
|
"""
|
||||||
|
irc.reply(str(os.getpid()))
|
||||||
|
|
||||||
_cryptre = re.compile(r'[./0-9A-Za-z]')
|
_cryptre = re.compile(r'[./0-9A-Za-z]')
|
||||||
def crypt(self, irc, msg, args):
|
def crypt(self, irc, msg, args):
|
||||||
"""<password> [<salt>]
|
"""<password> [<salt>]
|
||||||
|
Loading…
Reference in New Issue
Block a user