Restructure project

This commit is contained in:
James Booth
2016-11-13 17:01:39 +00:00
parent 5eea0240ad
commit cdb6cd93b5
20 changed files with 0 additions and 27 deletions

25
stable/whoami.py Normal file
View File

@@ -0,0 +1,25 @@
"""
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)