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

12 lines
308 B
Python
Raw Normal View History

2013-08-04 11:42:25 -04:00
import prof
import platform
# hooks
def prof_init(version, status):
prof.register_command("/platform", 0, 0, "/platform", "Output system information.", "Output system information", cmd_platform)
2013-08-04 13:57:33 -04:00
# commands
2013-08-04 11:42:25 -04:00
def cmd_platform():
result_summary = platform.platform()
prof.cons_show(result_summary)