From 390bd45fbda9454564026f9f7ab4ebdd0d4aef8a Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Wed, 15 Sep 2004 22:37:30 +0000 Subject: [PATCH] Added pid command. --- plugins/Unix.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plugins/Unix.py b/plugins/Unix.py index dd102da62..f67d2cf62 100644 --- a/plugins/Unix.py +++ b/plugins/Unix.py @@ -150,6 +150,13 @@ class Unix(callbacks.Privmsg): """ 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]') def crypt(self, irc, msg, args): """ []