code: def version(rest):
  	"Get the version of pmxbot or one of its plugins"
  	pkg = rest.strip() or 'pmxbot'
  	if pkg.lower() == 'python':
  		return sys.version.split()[0]
  	return importlib_metadata.version(pkgf version(rest):
  	"Get the version of pmxbot or one of its plugins"
  	pkg = rest.strip() or 'pmxbot'
  	if pkg.lower() == 'python':
  		return sys.version.split()[0]
  	return importlib_metadata.version(pkg)
docs: Get the version of pmxbot or one of its plugins