mirror of
https://github.com/profanity-im/profanity.git
synced 2025-01-03 14:57:42 -05:00
10 lines
255 B
Python
10 lines
255 B
Python
|
import prof
|
||
|
import getpass
|
||
|
|
||
|
def prof_init(version, status):
|
||
|
prof.register_command("/whoami", 0, 0, "/whoami", "Call shell whoami command.", "Call shell whoami command.", cmd_whoami)
|
||
|
|
||
|
def cmd_whoami():
|
||
|
me = getpass.getuser()
|
||
|
prof.cons_show(me)
|