""" Calls the 'whoami' command Theme in ~/.local/share/profanity/plugin_themes [whoami] result=bold_magenta """ import prof import getpass def _cmd_whoami(): me = getpass.getuser() prof.cons_show_themed("whoami", "result", None, me) def prof_init(version, status, account_name, fulljid): synopsis = [ "/whoami" ] description = "Calls the system whoami command" args = [] examples = [] prof.register_command("/whoami", 0, 0, synopsis, description, args, examples, _cmd_whoami)