1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00
profanity/plugins/whoami.py

12 lines
274 B
Python
Raw Normal View History

2013-08-02 21:21:43 -04:00
import prof
import getpass
# hooks
def prof_init(version, status):
prof.register_command("/whoami", 0, 0, "/whoami", "Call shell whoami command.", "Call shell whoami command.", cmd_whoami)
# commands
2013-08-02 21:21:43 -04:00
def cmd_whoami():
me = getpass.getuser()
prof.cons_show(me)